#include <stdio.h>
#include <stdlib.h>
#ifdef __WIIU__
#include "drivers/wut/WutPlatform.h"
#elif defined(HW_DOL)
#include "drivers/ogc/gamecube/GameCubePlatform.h"
#else
#include "drivers/ogc/wii/WiiPlatform.h"
#endif
#include "menu.h"
#include "filelist.h"
#include "demo.h"
#include "filebrowser.h"
#include "drivers/Thread.h"
struct SSettings Settings;
#ifdef __WIIU__
#elif defined(HW_DOL)
#else
#endif
#if defined(HW_RVL) || defined(HW_DOL)
#define IMAGE_DECODE_SCRATCH_SIZE ((640 * 480 * 4) + (480 * sizeof(void*)))
#else
#define IMAGE_DECODE_SCRATCH_SIZE ((1920 * 1080 * 4) + (1080 * sizeof(void*)))
#endif
void DefaultSettings()
{
Settings.LoadMethod = METHOD_AUTO;
Settings.SaveMethod = METHOD_AUTO;
sprintf (Settings.Folder1,"libgui/first folder");
sprintf (Settings.Folder2,"libgui/second folder");
sprintf (Settings.Folder3,"libgui/third folder");
Settings.AutoLoad = AUTO_SOME;
Settings.AutoSave = AUTO_SOME;
sprintf(Settings.Smb.host, "192.168.0.100");
sprintf(Settings.Smb.share, "Files");
sprintf(Settings.Smb.user, "Demo");
sprintf(Settings.Smb.password, "password");
}
int main(int, char **)
{
#ifdef __WIIU__
#endif
platform->init(platformConfig);
fontSystem =
new GuiTextRenderer(font_ttf, font_ttf_size, platform->getVideo()->getGlyphRenderer(), platform->getVideo()->getUIScale());
textTranslator->loadLanguage(en_lang, en_lang_size);
platform->getAudio()->start();
DefaultSettings();
InitDeviceCheckingThread();
MainMenu(MENU_SETTINGS);
platform->requestExit();
}
Umbrella header for the platform-agnostic libgui core.
static void setDecodeScratch(void *buffer, unsigned int size)
Sets the scratch buffer that every decode (the PNG-decoding constructors, and reload()) will stage it...
static void flush()
Frees every mesh nothing is holding, including the backend's copies (call when leaving the menu to gi...
FreeType2-based glyph shaping/caching.
Hashed msgid -> UTF-8 string table loaded from a single binary .lang blob (see loadLanguage()).
static void JoinAll()
Requests every currently-registered, still-running Thread stop (per its own wake callback,...