2012-01-21 21:57:41 +01:00
|
|
|
#ifndef __MENU_HPP
|
|
|
|
#define __MENU_HPP
|
2012-02-17 22:45:30 +01:00
|
|
|
//#define SHOWMEMGECKO
|
2012-08-05 15:48:15 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
#include <ogc/pad.h>
|
2012-05-06 14:03:43 +02:00
|
|
|
#include <vector>
|
2012-01-21 21:57:41 +01:00
|
|
|
#include <map>
|
2018-06-06 23:56:21 +02:00
|
|
|
#include <string>
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "btnmap.h"
|
|
|
|
#include "channel/banner.h"
|
|
|
|
#include "channel/channels.h"
|
|
|
|
#include "cheats/gct.h"
|
|
|
|
#include "devicemounter/DeviceHandler.hpp"
|
2013-06-30 20:40:49 +02:00
|
|
|
#include "fileOps/fileOps.h"
|
2012-12-08 17:17:35 +01:00
|
|
|
#include "gecko/gecko.hpp"
|
|
|
|
#include "gecko/wifi_gecko.hpp"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "gui/coverflow.hpp"
|
|
|
|
#include "gui/cursor.hpp"
|
2018-10-16 01:43:49 +02:00
|
|
|
#include "gui/fanart.hpp"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "gui/gui.hpp"
|
2012-10-03 23:34:37 +02:00
|
|
|
#include "list/ListGenerator.hpp"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "loader/disc.h"
|
2012-11-17 18:30:24 +01:00
|
|
|
#include "loader/sys.h"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "loader/gc_disc_dump.hpp"
|
|
|
|
#include "loader/wbfs.h"
|
|
|
|
#include "music/gui_sound.h"
|
2012-09-22 15:47:52 +02:00
|
|
|
#include "music/MusicPlayer.hpp"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "plugin/plugin.hpp"
|
2018-08-01 14:27:12 +02:00
|
|
|
#include "sicksaxis-wrapper/sicksaxis-wrapper.h"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "wiiuse/wpad.h"
|
2018-07-27 00:24:00 +02:00
|
|
|
#include "wupc/wupc.h"
|
2018-08-01 14:27:12 +02:00
|
|
|
#include "wiidrc/wiidrc.h"
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-05-06 14:03:43 +02:00
|
|
|
using namespace std;
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
class CMenu
|
|
|
|
{
|
|
|
|
public:
|
2012-10-13 18:57:03 +02:00
|
|
|
CMenu();
|
2019-10-27 01:45:55 +02:00
|
|
|
bool init(bool usb_mounted);
|
2012-01-21 21:57:41 +01:00
|
|
|
void error(const wstringEx &msg);
|
2012-07-07 00:38:21 +02:00
|
|
|
void terror(const char *key, const wchar_t *msg) { error(_fmt(key, msg)); }
|
2012-01-21 21:57:41 +01:00
|
|
|
int main(void);
|
2012-08-24 20:01:40 +02:00
|
|
|
void cleanup(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
void directlaunch(const char *GameID);
|
2012-11-12 21:12:00 +01:00
|
|
|
void TempLoadIOS(int IOS = 0);
|
2013-03-28 14:02:50 +01:00
|
|
|
|
|
|
|
const char *getBoxPath(const dir_discHdr *element);
|
|
|
|
const char *getFrontPath(const dir_discHdr *element);
|
|
|
|
const char *getBlankCoverPath(const dir_discHdr *element);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
private:
|
2016-06-06 15:52:57 +02:00
|
|
|
u8 m_prev_view;
|
2012-07-05 15:15:23 +02:00
|
|
|
u8 m_current_view;
|
2016-12-01 01:05:39 +01:00
|
|
|
u8 m_source_cnt;
|
2012-12-25 20:09:41 +01:00
|
|
|
u8 enabledPluginsCount;
|
2013-07-29 23:06:50 +02:00
|
|
|
u8 m_catStartPage;
|
2016-12-14 19:47:13 +01:00
|
|
|
u8 m_max_categories;
|
2013-07-29 23:06:50 +02:00
|
|
|
bool m_clearCats;
|
2019-10-10 01:00:54 +02:00
|
|
|
bool m_getFavs;
|
2017-05-15 19:50:24 +02:00
|
|
|
bool m_newGame;
|
2016-11-07 16:06:00 +01:00
|
|
|
bool show_mem;
|
2018-11-05 20:57:01 +01:00
|
|
|
bool cacheCovers;
|
2019-03-27 17:45:43 +01:00
|
|
|
bool SF_cacheCovers;
|
2019-03-06 19:52:12 +01:00
|
|
|
bool CFLocked;
|
2019-07-10 13:59:30 +02:00
|
|
|
bool Auto_hide_icons;
|
2019-09-30 18:07:04 +02:00
|
|
|
bool m_snapshot_loaded;
|
2019-11-24 00:54:38 +01:00
|
|
|
bool customBg;
|
2016-06-20 23:03:40 +02:00
|
|
|
vector<dir_discHdr> m_gameList;
|
2019-10-17 01:22:40 +02:00
|
|
|
vector<string> tiers;
|
|
|
|
vector<string> sm_numbers;
|
2019-11-20 19:45:17 +01:00
|
|
|
string sm_numbers_backup;
|
|
|
|
string sm_tiers_backup;
|
2019-10-17 01:22:40 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
struct SZone
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
bool hide;
|
|
|
|
};
|
|
|
|
CCursor m_cursor[WPAD_MAX_WIIMOTES];
|
2018-10-16 01:43:49 +02:00
|
|
|
CFanart m_fa;
|
2012-01-21 21:57:41 +01:00
|
|
|
Config m_cfg;
|
|
|
|
Config m_loc;
|
|
|
|
Config m_cat;
|
2013-06-17 19:24:06 +02:00
|
|
|
Config m_source;
|
2012-01-21 21:57:41 +01:00
|
|
|
Config m_gcfg1;
|
|
|
|
Config m_gcfg2;
|
|
|
|
Config m_theme;
|
2016-04-30 16:19:30 +02:00
|
|
|
Config m_coverflow;
|
2019-04-08 18:10:30 +02:00
|
|
|
Config m_platform;
|
- PHASE 2 (finally!)
- New Coverflow theme format. no more emuflow, coverflow, brewflow. now we have coverflow, shortflow, sideflow, and smallflow.
- coverflow is the normal coverflow.
- shortflow is automatically used for plugins if all selected plugins require a short CD style cover such as GB, GBC, GBA, and playstation. if there's more let me know and i can add them.
- sideflow is automatically used for plugins if all selected plugins require a cover on its side such as SNES and Nintendo 64.
- smallflow is used if smallbox is set for homebrew and sourceflow.
- no more need for emuflow= with a source btn in the source menu. it is done automatically now using the plugins magic#
- each flow has its own number of modes/layouts. so now coveflow can have 8, smallfow 1, sideflow, 6, and shortflow 4 or whatever you want.
- adjust coverflow works with no problems. just choose the view first before entering the adjust coverflow menu.
- other minor code changes here and there.
- remember themes are now in themes_lite and the coverflow part is seperated and put in the coverflows folder with the same name as the theme or you can use a default coverflow named default.ini for all themes.
2016-05-11 19:58:36 +02:00
|
|
|
|
2018-06-27 14:47:03 +02:00
|
|
|
//vector<string> m_homebrewArgs;
|
2012-09-07 20:13:04 +02:00
|
|
|
u8 *m_base_font;
|
2012-01-21 21:57:41 +01:00
|
|
|
u32 m_base_font_size;
|
2012-09-07 20:13:04 +02:00
|
|
|
u8 *m_wbf1_font;
|
|
|
|
u8 *m_wbf2_font;
|
2013-08-08 20:21:11 +02:00
|
|
|
u8 *m_file;
|
2013-08-09 16:52:17 +02:00
|
|
|
u8 *m_buffer;
|
2012-01-21 21:57:41 +01:00
|
|
|
u8 m_aa;
|
- PHASE 2 (finally!)
- New Coverflow theme format. no more emuflow, coverflow, brewflow. now we have coverflow, shortflow, sideflow, and smallflow.
- coverflow is the normal coverflow.
- shortflow is automatically used for plugins if all selected plugins require a short CD style cover such as GB, GBC, GBA, and playstation. if there's more let me know and i can add them.
- sideflow is automatically used for plugins if all selected plugins require a cover on its side such as SNES and Nintendo 64.
- smallflow is used if smallbox is set for homebrew and sourceflow.
- no more need for emuflow= with a source btn in the source menu. it is done automatically now using the plugins magic#
- each flow has its own number of modes/layouts. so now coveflow can have 8, smallfow 1, sideflow, 6, and shortflow 4 or whatever you want.
- adjust coverflow works with no problems. just choose the view first before entering the adjust coverflow menu.
- other minor code changes here and there.
- remember themes are now in themes_lite and the coverflow part is seperated and put in the coverflows folder with the same name as the theme or you can use a default coverflow named default.ini for all themes.
2016-05-11 19:58:36 +02:00
|
|
|
u8 m_numCFVersions;
|
2016-04-03 02:51:40 +02:00
|
|
|
u8 m_numPlugins;
|
2018-09-26 17:28:01 +02:00
|
|
|
u8 m_max_source_btn;
|
2019-11-24 00:54:38 +01:00
|
|
|
u8 curCustBg;
|
2019-03-18 19:39:28 +01:00
|
|
|
char cf_domain[16];
|
2016-11-07 16:06:00 +01:00
|
|
|
bool m_use_source;// source_menu.ini found & ok to use source menu/flow
|
|
|
|
bool m_sourceflow;// in sourceflow view
|
|
|
|
bool m_refreshGameList;
|
2012-07-10 14:02:06 +02:00
|
|
|
bool m_bnr_settings;
|
2012-01-21 21:57:41 +01:00
|
|
|
bool m_directLaunch;
|
|
|
|
bool m_locked;
|
|
|
|
bool m_favorites;
|
2012-09-29 13:41:47 +02:00
|
|
|
bool m_music_info;
|
2016-11-07 16:06:00 +01:00
|
|
|
bool m_devo_installed;
|
|
|
|
bool m_nintendont_installed;
|
|
|
|
bool m_reload;
|
|
|
|
bool m_use_wifi_gecko;
|
|
|
|
bool m_use_sd_logging;
|
|
|
|
bool m_init_network;
|
|
|
|
bool m_source_autoboot;
|
|
|
|
dir_discHdr m_autoboot_hdr;
|
2012-01-21 21:57:41 +01:00
|
|
|
s16 m_showtimer;
|
2018-09-03 23:58:31 +02:00
|
|
|
s16 m_musicTimer;
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_curLanguage;
|
2019-07-24 19:35:51 +02:00
|
|
|
string m_themeName;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2019-07-24 18:23:05 +02:00
|
|
|
/* Dir strings */
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_appDir;
|
2013-11-19 16:27:52 +01:00
|
|
|
string m_imgsDir;
|
|
|
|
string m_binsDir;
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_dataDir;
|
2019-07-24 18:23:05 +02:00
|
|
|
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_cacheDir;
|
2012-07-05 18:18:23 +02:00
|
|
|
string m_listCacheDir;
|
|
|
|
string m_bnrCacheDir;
|
2019-07-24 18:23:05 +02:00
|
|
|
string m_customBnrDir;
|
|
|
|
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_txtCheatDir;
|
|
|
|
string m_cheatDir;
|
|
|
|
string m_wipDir;
|
2019-07-24 18:23:05 +02:00
|
|
|
|
2012-05-06 14:59:09 +02:00
|
|
|
string m_settingsDir;
|
|
|
|
string m_languagesDir;
|
2019-07-24 18:23:05 +02:00
|
|
|
string m_helpDir;
|
|
|
|
string m_screenshotDir;
|
|
|
|
|
|
|
|
string m_boxPicDir;
|
|
|
|
string m_picDir;
|
|
|
|
string m_themeDir;
|
|
|
|
string m_themeDataDir;
|
|
|
|
string m_coverflowsDir;
|
|
|
|
string m_musicDir;
|
|
|
|
string m_videoDir;
|
|
|
|
string m_fanartDir;
|
|
|
|
string m_bckgrndsDir;
|
|
|
|
|
|
|
|
string m_sourceDir;
|
|
|
|
string m_pluginsDir;
|
|
|
|
string m_pluginDataDir;
|
2018-12-30 23:00:51 +01:00
|
|
|
string m_cartDir;
|
|
|
|
string m_snapDir;
|
2019-07-24 18:23:05 +02:00
|
|
|
|
2013-08-05 22:58:26 +02:00
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
/* NandEmulation */
|
2018-11-09 23:09:07 +01:00
|
|
|
char emu_nands_dir[32];
|
2016-11-07 16:06:00 +01:00
|
|
|
string m_saveExtGameId;
|
|
|
|
bool m_forceext;
|
|
|
|
bool m_emuSaveNand;
|
|
|
|
s32 m_partRequest;
|
|
|
|
|
2018-05-30 22:45:48 +02:00
|
|
|
/* GC sound stuff */
|
|
|
|
bool m_gc_play_banner_sound;
|
|
|
|
bool m_gc_play_default_sound;
|
|
|
|
|
2013-08-05 22:58:26 +02:00
|
|
|
/* Explorer stuff */
|
|
|
|
bool m_txt_view;
|
|
|
|
const char *m_txt_path;
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
// Background image stuff
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_curBg;
|
|
|
|
const TexData *m_prevBg;
|
|
|
|
const TexData *m_nextBg;
|
|
|
|
const TexData *m_lqBg;
|
2012-01-21 21:57:41 +01:00
|
|
|
u8 m_bgCrossFade;
|
|
|
|
//
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_errorBg;
|
|
|
|
TexData m_configBg;
|
|
|
|
TexData m_config3Bg;
|
|
|
|
TexData m_configScreenBg;
|
|
|
|
TexData m_config4Bg;
|
|
|
|
TexData m_configAdvBg;
|
|
|
|
TexData m_configSndBg;
|
2016-11-07 16:06:00 +01:00
|
|
|
TexData m_cheatBg;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_downloadBg;
|
2016-11-07 16:06:00 +01:00
|
|
|
TexData m_gameinfoBg;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_codeBg;
|
|
|
|
TexData m_aboutBg;
|
|
|
|
TexData m_systemBg;
|
|
|
|
TexData m_wbfsBg;
|
|
|
|
TexData m_gameSettingsBg;
|
2019-11-24 00:54:38 +01:00
|
|
|
TexData m_gameBg;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_gameBgLQ;
|
2019-11-24 00:54:38 +01:00
|
|
|
TexData m_mainBg;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_mainBgLQ;
|
2019-11-24 00:54:38 +01:00
|
|
|
TexData m_mainCustomBg[2];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
//Main Coverflow
|
2019-03-04 21:29:46 +01:00
|
|
|
s16 m_mainBtnCategories;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_mainBtnConfig;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_mainBtnHome;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_mainBtnFavoritesOn;
|
|
|
|
s16 m_mainBtnFavoritesOff;
|
2012-09-16 15:41:31 +02:00
|
|
|
s16 m_mainLblCurMusic;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_mainLblLetter;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_mainLblNotice;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_mainLblMessage;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_mainBtnNext;
|
|
|
|
s16 m_mainBtnPrev;
|
|
|
|
s16 m_mainBtnDVD;
|
2016-04-03 02:31:02 +02:00
|
|
|
s16 m_mainBtnGamecube;
|
|
|
|
s16 m_mainBtnPlugin;
|
|
|
|
s16 m_mainBtnWii;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_mainBtnChannel;
|
|
|
|
s16 m_mainBtnHomebrew;
|
|
|
|
s16 m_mainLblUser[6];
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_mem1FreeSize;
|
|
|
|
s16 m_mem2FreeSize;
|
|
|
|
#ifdef SHOWMEMGECKO
|
|
|
|
unsigned int mem1old;
|
|
|
|
unsigned int mem1;
|
|
|
|
unsigned int mem2old;
|
|
|
|
unsigned int mem2;
|
|
|
|
#endif
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
//Main Config menus
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configLblPage;
|
|
|
|
s16 m_configBtnPageM;
|
|
|
|
s16 m_configBtnPageP;
|
|
|
|
s16 m_configBtnBack;
|
|
|
|
s16 m_configLblTitle;
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configLblDownload;
|
|
|
|
s16 m_configBtnDownload;
|
|
|
|
s16 m_configLblParental;
|
|
|
|
s16 m_configBtnUnlock;
|
|
|
|
s16 m_configBtnSetCode;
|
|
|
|
s16 m_configLblPartition;
|
2016-12-14 19:47:13 +01:00
|
|
|
s16 m_configBtnPartition;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configLblCfg4;
|
|
|
|
s16 m_configBtnCfg4;
|
|
|
|
s16 m_configLblUser[4];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configAdvLblTheme;
|
|
|
|
s16 m_configAdvLblCurTheme;
|
|
|
|
s16 m_configAdvBtnCurThemeM;
|
|
|
|
s16 m_configAdvBtnCurThemeP;
|
|
|
|
s16 m_configAdvLblLanguage;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_configAdvLblCurLanguage;
|
|
|
|
s16 m_configAdvBtnCurLanguageM;
|
|
|
|
s16 m_configAdvBtnCurLanguageP;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configAdvLblCFTheme;
|
|
|
|
s16 m_configAdvBtnCFTheme;
|
2012-12-21 20:51:22 +01:00
|
|
|
s16 m_configAdvLblBootChange;
|
|
|
|
s16 m_configAdvBtnBootChange;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configAdvLblUser[4];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_config3LblGameLanguage;
|
|
|
|
s16 m_config3LblLanguage;
|
|
|
|
s16 m_config3BtnLanguageP;
|
|
|
|
s16 m_config3BtnLanguageM;
|
|
|
|
s16 m_config3LblGameVideo;
|
|
|
|
s16 m_config3LblVideo;
|
|
|
|
s16 m_config3BtnVideoP;
|
|
|
|
s16 m_config3BtnVideoM;
|
2016-12-14 19:47:13 +01:00
|
|
|
s16 m_config3LblGCDefaults;
|
|
|
|
s16 m_config3BtnGCDefaults;
|
2016-12-01 01:05:39 +01:00
|
|
|
s16 m_config3LblChannelsType;
|
|
|
|
s16 m_config3LblChannelsTypeVal;
|
|
|
|
s16 m_config3BtnChannelsTypeP;
|
|
|
|
s16 m_config3BtnChannelsTypeM;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_config3LblUser[4];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_config4LblReturnTo;
|
|
|
|
s16 m_config4LblReturnToVal;
|
|
|
|
s16 m_config4BtnReturnToM;
|
|
|
|
s16 m_config4BtnReturnToP;
|
|
|
|
s16 m_config4LblHome;
|
|
|
|
s16 m_config4BtnHome;
|
|
|
|
s16 m_config4LblSaveFavMode;
|
|
|
|
s16 m_config4BtnSaveFavMode;
|
2013-08-17 15:21:43 +02:00
|
|
|
s16 m_config4LblPathManager;
|
|
|
|
s16 m_config4BtnPathManager;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_config4LblUser[4];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configSndLblBnrVol;
|
|
|
|
s16 m_configSndLblBnrVolVal;
|
|
|
|
s16 m_configSndBtnBnrVolP;
|
|
|
|
s16 m_configSndBtnBnrVolM;
|
|
|
|
s16 m_configSndLblMusicVol;
|
|
|
|
s16 m_configSndLblMusicVolVal;
|
|
|
|
s16 m_configSndBtnMusicVolP;
|
|
|
|
s16 m_configSndBtnMusicVolM;
|
|
|
|
s16 m_configSndLblGuiVol;
|
|
|
|
s16 m_configSndLblGuiVolVal;
|
|
|
|
s16 m_configSndBtnGuiVolP;
|
|
|
|
s16 m_configSndBtnGuiVolM;
|
|
|
|
s16 m_configSndLblCFVol;
|
|
|
|
s16 m_configSndLblCFVolVal;
|
|
|
|
s16 m_configSndBtnCFVolP;
|
|
|
|
s16 m_configSndBtnCFVolM;
|
|
|
|
s16 m_configSndLblUser[4];
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_configScreenLblTVHeight;
|
|
|
|
s16 m_configScreenLblTVHeightVal;
|
|
|
|
s16 m_configScreenBtnTVHeightP;
|
|
|
|
s16 m_configScreenBtnTVHeightM;
|
|
|
|
s16 m_configScreenLblTVWidth;
|
|
|
|
s16 m_configScreenLblTVWidthVal;
|
|
|
|
s16 m_configScreenBtnTVWidthP;
|
|
|
|
s16 m_configScreenBtnTVWidthM;
|
|
|
|
s16 m_configScreenLblTVX;
|
|
|
|
s16 m_configScreenLblTVXVal;
|
|
|
|
s16 m_configScreenBtnTVXM;
|
|
|
|
s16 m_configScreenBtnTVXP;
|
|
|
|
s16 m_configScreenLblTVY;
|
|
|
|
s16 m_configScreenLblTVYVal;
|
|
|
|
s16 m_configScreenBtnTVYM;
|
|
|
|
s16 m_configScreenBtnTVYP;
|
|
|
|
s16 m_configScreenLblUser[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
//Download menu
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_downloadPrioVal;
|
2012-02-12 02:43:31 +01:00
|
|
|
enum CoverPrio
|
|
|
|
{
|
2018-11-23 22:31:04 +01:00
|
|
|
C_TYPE_PRIOA = (1<<0),//C_TYPE_ACUSTM
|
|
|
|
C_TYPE_PRIOB = (1<<1),//C_TYPE_BCUSTM
|
2012-02-12 02:43:31 +01:00
|
|
|
C_TYPE_EN = (1<<2),
|
|
|
|
C_TYPE_JA = (1<<3),
|
|
|
|
C_TYPE_FR = (1<<4),
|
|
|
|
C_TYPE_DE = (1<<5),
|
|
|
|
C_TYPE_ES = (1<<6),
|
|
|
|
C_TYPE_IT = (1<<7),
|
|
|
|
C_TYPE_NL = (1<<8),
|
|
|
|
C_TYPE_PT = (1<<9),
|
|
|
|
C_TYPE_RU = (1<<10),
|
|
|
|
C_TYPE_KO = (1<<11),
|
|
|
|
C_TYPE_ZHCN = (1<<12),
|
|
|
|
C_TYPE_AU = (1<<13),
|
2018-11-23 22:31:04 +01:00
|
|
|
C_TYPE_ONOR = (1<<14),//C_TYPE_ONCU
|
|
|
|
C_TYPE_ONCU = (1<<15),//C_TYPE_ANB
|
2012-02-12 02:43:31 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
enum CoverType
|
|
|
|
{
|
|
|
|
BOX = 1,
|
|
|
|
CBOX,
|
|
|
|
FLAT,
|
|
|
|
CFLAT,
|
|
|
|
};
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_downloadLblTitle;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_downloadLblGameTDB;
|
|
|
|
s16 m_downloadLblUser[4];
|
|
|
|
s16 m_downloadLblCovers;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_downloadBtnAll;
|
|
|
|
s16 m_downloadBtnMissing;
|
|
|
|
s16 m_downloadLblGameTDBDownload;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_downloadBtnGameTDBDownload;
|
2018-12-11 22:24:32 +01:00
|
|
|
s16 m_downloadLblBanners;
|
|
|
|
s16 m_downloadBtnBanners;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_downloadLblCoverSet;
|
|
|
|
s16 m_downloadBtnCoverSet;
|
|
|
|
s16 m_downloadBtnCancel;// used as back btn
|
|
|
|
s16 m_downloadPBar;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_downloadLblMessage[2];
|
2016-11-07 16:06:00 +01:00
|
|
|
//settings
|
|
|
|
s16 m_downloadLblSetTitle;
|
|
|
|
s16 m_downloadBtnBack;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_downloadLblCoverPrio;
|
|
|
|
s16 m_downloadLblPrio;
|
|
|
|
s16 m_downloadBtnPrioM;
|
|
|
|
s16 m_downloadBtnPrioP;
|
|
|
|
s16 m_downloadLblRegion;
|
2012-02-12 02:43:31 +01:00
|
|
|
enum Regions
|
|
|
|
{
|
|
|
|
EN = 1,
|
|
|
|
JA,
|
|
|
|
FR,
|
|
|
|
DE,
|
|
|
|
ES,
|
|
|
|
IT,
|
|
|
|
NL,
|
|
|
|
PT,
|
|
|
|
RU,
|
|
|
|
KO,
|
|
|
|
ZHCN,
|
|
|
|
AU,
|
|
|
|
};
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_downloadBtnEN;
|
|
|
|
s16 m_downloadBtnJA;
|
|
|
|
s16 m_downloadBtnFR;
|
|
|
|
s16 m_downloadBtnDE;
|
|
|
|
s16 m_downloadBtnES;
|
|
|
|
s16 m_downloadBtnIT;
|
|
|
|
s16 m_downloadBtnNL;
|
|
|
|
s16 m_downloadBtnPT;
|
|
|
|
s16 m_downloadBtnRU;
|
|
|
|
s16 m_downloadBtnKO;
|
|
|
|
s16 m_downloadBtnZHCN;
|
|
|
|
s16 m_downloadBtnAU;
|
|
|
|
s16 m_downloadBtnENs;
|
|
|
|
s16 m_downloadBtnJAs;
|
|
|
|
s16 m_downloadBtnFRs;
|
|
|
|
s16 m_downloadBtnDEs;
|
|
|
|
s16 m_downloadBtnESs;
|
|
|
|
s16 m_downloadBtnITs;
|
|
|
|
s16 m_downloadBtnNLs;
|
|
|
|
s16 m_downloadBtnPTs;
|
|
|
|
s16 m_downloadBtnRUs;
|
|
|
|
s16 m_downloadBtnKOs;
|
|
|
|
s16 m_downloadBtnZHCNs;
|
|
|
|
s16 m_downloadBtnAUs;
|
2012-01-21 21:57:41 +01:00
|
|
|
//Game menu
|
2012-05-06 14:59:09 +02:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
LOAD_IOS_FAILED = 0,
|
|
|
|
LOAD_IOS_SUCCEEDED,
|
|
|
|
LOAD_IOS_NOT_NEEDED
|
|
|
|
};
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameBtnFavoriteOn;
|
|
|
|
s16 m_gameBtnFavoriteOff;
|
2019-03-04 21:29:46 +01:00
|
|
|
s16 m_gameBtnCategories;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameBtnDelete;
|
|
|
|
s16 m_gameBtnSettings;
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_gameBtnPlay;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameBtnBack;
|
2012-09-20 17:50:47 +02:00
|
|
|
s16 m_gameLblUser[5];
|
2019-10-07 19:15:41 +02:00
|
|
|
int snapbg_x, snapbg_y, snapbg_w, snapbg_h;
|
2012-12-21 16:11:24 +01:00
|
|
|
// Parental code menu
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_codeLblTitle;
|
|
|
|
s16 m_codeBtnKey[10];
|
|
|
|
s16 m_codeBtnBack;
|
|
|
|
s16 m_codeBtnErase;
|
|
|
|
s16 m_codeLblUser[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
//menu_wbfs
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_wbfsLblTitle;
|
|
|
|
s16 m_wbfsPBar;
|
|
|
|
s16 m_wbfsBtnGo;
|
|
|
|
s16 m_wbfsLblDialog;
|
|
|
|
s16 m_wbfsLblMessage;
|
|
|
|
s16 m_wbfsLblUser[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
//Theme Adjust menus
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_cfThemeBtnAlt;
|
|
|
|
s16 m_cfThemeBtnSelect;
|
|
|
|
s16 m_cfThemeBtnWide;
|
|
|
|
s16 m_cfThemeLblParam;
|
|
|
|
s16 m_cfThemeBtnParamM;
|
|
|
|
s16 m_cfThemeBtnParamP;
|
|
|
|
s16 m_cfThemeBtnCopy;
|
|
|
|
s16 m_cfThemeBtnPaste;
|
|
|
|
s16 m_cfThemeBtnSave;
|
|
|
|
s16 m_cfThemeBtnCancel;
|
|
|
|
s16 m_cfThemeLblVal[4 * 4];
|
|
|
|
s16 m_cfThemeBtnValM[4 * 4];
|
|
|
|
s16 m_cfThemeBtnValP[4 * 4];
|
|
|
|
s16 m_cfThemeLblValTxt[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
//Game Settings menus
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblPage;
|
|
|
|
s16 m_gameSettingsBtnPageM;
|
|
|
|
s16 m_gameSettingsBtnPageP;
|
|
|
|
s16 m_gameSettingsBtnBack;
|
|
|
|
s16 m_gameSettingsLblTitle;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblGameLanguage;
|
|
|
|
s16 m_gameSettingsLblLanguage;
|
|
|
|
s16 m_gameSettingsBtnLanguageP;
|
|
|
|
s16 m_gameSettingsBtnLanguageM;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblGameVideo;
|
|
|
|
s16 m_gameSettingsLblVideo;
|
|
|
|
s16 m_gameSettingsBtnVideoP;
|
|
|
|
s16 m_gameSettingsBtnVideoM;
|
2012-01-27 12:43:31 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
s16 m_gameSettingsLblApploader;
|
|
|
|
s16 m_gameSettingsBtnApploader;
|
2012-02-02 23:22:46 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
s16 m_gameSettingsLblLED;
|
|
|
|
s16 m_gameSettingsBtnLED;
|
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblAspectRatio;
|
|
|
|
s16 m_gameSettingsLblAspectRatioVal;
|
|
|
|
s16 m_gameSettingsBtnAspectRatioP;
|
|
|
|
s16 m_gameSettingsBtnAspectRatioM;
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
s16 m_gameSettingsLblEmuMemCard;
|
|
|
|
s16 m_gameSettingsLblEmuMemCard_Val;
|
|
|
|
s16 m_gameSettingsBtnEmuMemCard_P;
|
|
|
|
s16 m_gameSettingsBtnEmuMemCard_M;
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblDevoMemcardEmu;
|
|
|
|
s16 m_gameSettingsBtnDevoMemcardEmu;
|
2012-07-13 22:00:54 +02:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
s16 m_gameSettingsLblWidescreen;
|
|
|
|
s16 m_gameSettingsBtnWidescreen;
|
2016-04-02 18:47:18 +02:00
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
s16 m_gameSettingsLblWiiuWidescreen;
|
|
|
|
s16 m_gameSettingsBtnWiiuWidescreen;
|
|
|
|
|
2017-03-17 01:02:21 +01:00
|
|
|
s16 m_gameSettingsLblCC_Rumble;
|
|
|
|
s16 m_gameSettingsBtnCC_Rumble;
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2016-04-02 18:47:18 +02:00
|
|
|
s16 m_gameSettingsLblNATIVE_CTL;
|
|
|
|
s16 m_gameSettingsBtnNATIVE_CTL;
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2016-04-02 18:47:18 +02:00
|
|
|
s16 m_gameSettingsLblDeflicker;
|
|
|
|
s16 m_gameSettingsBtnDeflicker;
|
2012-07-22 20:39:34 +02:00
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
s16 m_gameSettingsLblArcade;
|
|
|
|
s16 m_gameSettingsBtnArcade;
|
|
|
|
|
2017-03-17 01:02:21 +01:00
|
|
|
s16 m_gameSettingsLblSkip_IPL;
|
|
|
|
s16 m_gameSettingsBtnSkip_IPL;
|
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
s16 m_gameSettingsLblPatch50;
|
|
|
|
s16 m_gameSettingsBtnPatch50;
|
|
|
|
|
|
|
|
s16 m_gameSettingsLblWidth;
|
|
|
|
s16 m_gameSettingsLblWidthVal;
|
|
|
|
s16 m_gameSettingsBtnWidthP;
|
|
|
|
s16 m_gameSettingsBtnWidthM;
|
|
|
|
|
|
|
|
s16 m_gameSettingsLblPos;
|
|
|
|
s16 m_gameSettingsLblPosVal;
|
|
|
|
s16 m_gameSettingsBtnPosP;
|
|
|
|
s16 m_gameSettingsBtnPosM;
|
2019-11-01 01:00:58 +01:00
|
|
|
|
|
|
|
s16 m_gameSettingsLblBBA;
|
|
|
|
s16 m_gameSettingsBtnBBA;
|
|
|
|
|
|
|
|
s16 m_gameSettingsLblNetProf;
|
|
|
|
s16 m_gameSettingsLblNetProfVal;
|
|
|
|
s16 m_gameSettingsBtnNetProfP;
|
|
|
|
s16 m_gameSettingsBtnNetProfM;
|
2017-04-18 01:23:50 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblGCLoader;
|
|
|
|
s16 m_gameSettingsLblGCLoader_Val;
|
|
|
|
s16 m_gameSettingsBtnGCLoader_P;
|
|
|
|
s16 m_gameSettingsBtnGCLoader_M;
|
2012-07-15 00:44:57 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblCustom;
|
|
|
|
s16 m_gameSettingsBtnCustom;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblLaunchNK;
|
|
|
|
s16 m_gameSettingsBtnLaunchNK;
|
2012-01-30 06:25:56 +01:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblOcarina;
|
|
|
|
s16 m_gameSettingsBtnOcarina;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblVipatch;
|
|
|
|
s16 m_gameSettingsBtnVipatch;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblCountryPatch;
|
|
|
|
s16 m_gameSettingsBtnCountryPatch;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2016-04-02 17:46:06 +02:00
|
|
|
s16 m_gameSettingsLblPrivateServer;
|
|
|
|
s16 m_gameSettingsBtnPrivateServer;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2019-09-23 16:20:22 +02:00
|
|
|
s16 m_gameSettingsLblFix480p;
|
|
|
|
s16 m_gameSettingsBtnFix480p;
|
|
|
|
|
2013-06-27 19:14:11 +02:00
|
|
|
s16 m_gameSettingsLblManage;
|
|
|
|
s16 m_gameSettingsBtnManage;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblPatchVidModes;
|
|
|
|
s16 m_gameSettingsLblPatchVidModesVal;
|
|
|
|
s16 m_gameSettingsBtnPatchVidModesM;
|
|
|
|
s16 m_gameSettingsBtnPatchVidModesP;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblUser[3 * 2];
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblHooktype;
|
|
|
|
s16 m_gameSettingsLblHooktypeVal;
|
|
|
|
s16 m_gameSettingsBtnHooktypeM;
|
|
|
|
s16 m_gameSettingsBtnHooktypeP;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblEmulationVal;
|
|
|
|
s16 m_gameSettingsBtnEmulationP;
|
|
|
|
s16 m_gameSettingsBtnEmulationM;
|
|
|
|
s16 m_gameSettingsLblEmulation;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblDebugger;
|
|
|
|
s16 m_gameSettingsLblDebuggerV;
|
|
|
|
s16 m_gameSettingsBtnDebuggerP;
|
|
|
|
s16 m_gameSettingsBtnDebuggerM;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblCheat;
|
|
|
|
s16 m_gameSettingsBtnCheat;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2019-03-04 21:29:46 +01:00
|
|
|
s16 m_gameSettingsLblAdultOnly;
|
|
|
|
s16 m_gameSettingsBtnAdultOnly;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblGameIOS;
|
|
|
|
s16 m_gameSettingsLblIOS;
|
|
|
|
s16 m_gameSettingsBtnIOSP;
|
|
|
|
s16 m_gameSettingsBtnIOSM;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblExtractSave;
|
|
|
|
s16 m_gameSettingsBtnExtractSave;
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameSettingsLblFlashSave;
|
|
|
|
s16 m_gameSettingsBtnFlashSave;
|
2012-01-21 21:57:41 +01:00
|
|
|
// System Menu
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_systemBtnBack;
|
|
|
|
s16 m_systemLblTitle;
|
|
|
|
s16 m_systemLblVersionTxt;
|
2016-04-02 17:46:06 +02:00
|
|
|
s16 m_systemLblNINverTxt;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_systemLblVersion;
|
2016-04-02 17:46:06 +02:00
|
|
|
s16 m_systemLblNINver;
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_systemLblVersionRev;
|
|
|
|
s16 m_systemLblUser[4];
|
|
|
|
s16 m_systemBtnDownload;
|
|
|
|
s16 m_systemLblInfo;
|
|
|
|
s16 m_systemLblVerSelectVal;
|
|
|
|
s16 m_systemBtnVerSelectM;
|
|
|
|
s16 m_systemBtnVerSelectP;
|
2012-01-21 21:57:41 +01:00
|
|
|
//Cheat menu
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_cheatBtnBack;
|
|
|
|
s16 m_cheatBtnApply;
|
|
|
|
s16 m_cheatBtnDownload;
|
|
|
|
s16 m_cheatLblTitle;
|
|
|
|
s16 m_cheatLblPage;
|
|
|
|
s16 m_cheatBtnPageM;
|
|
|
|
s16 m_cheatBtnPageP;
|
|
|
|
s16 m_cheatLblItem[4];
|
|
|
|
s16 m_cheatBtnItem[4];
|
|
|
|
s16 m_cheatLblUser[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
GCTCheats m_cheatfile;
|
|
|
|
// Gameinfo menu
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_gameinfoLblTitle;
|
|
|
|
s16 m_gameinfoLblID;
|
|
|
|
s16 m_gameinfoLblSynopsis;
|
|
|
|
s16 m_gameinfoLblDev;
|
|
|
|
s16 m_gameinfoLblRegion;
|
|
|
|
s16 m_gameinfoLblPublisher;
|
|
|
|
s16 m_gameinfoLblRlsdate;
|
|
|
|
s16 m_gameinfoLblGenre;
|
|
|
|
s16 m_gameinfoLblRating;
|
|
|
|
s16 m_gameinfoLblWifiplayers;
|
|
|
|
s16 m_gameinfoLblUser[5];
|
|
|
|
s16 m_gameinfoLblControlsReq[4];
|
|
|
|
s16 m_gameinfoLblControls[4];
|
2018-12-30 23:00:51 +01:00
|
|
|
s16 m_gameinfoLblSnap;
|
|
|
|
s16 m_gameinfoLblCartDisk;
|
|
|
|
s16 m_gameinfoLblOverlay;
|
2019-09-30 18:07:04 +02:00
|
|
|
s16 m_gameLblSnap;
|
|
|
|
s16 m_gameLblOverlay;
|
2018-12-30 23:00:51 +01:00
|
|
|
TexData m_snap;
|
|
|
|
TexData m_cart;
|
|
|
|
TexData m_overlay;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData m_rating;
|
|
|
|
TexData m_wifi;
|
|
|
|
TexData m_controlsreq[4];
|
|
|
|
TexData m_controls[4];
|
2012-01-21 21:57:41 +01:00
|
|
|
// Zones
|
|
|
|
SZone m_mainPrevZone;
|
|
|
|
SZone m_mainNextZone;
|
|
|
|
SZone m_mainButtonsZone;
|
|
|
|
SZone m_mainButtonsZone2;
|
|
|
|
SZone m_mainButtonsZone3;
|
|
|
|
SZone m_gameButtonsZone;
|
2012-08-26 14:05:04 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
WPADData *wd[WPAD_MAX_WIIMOTES];
|
2013-03-31 19:09:37 +02:00
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
u32 wii_btnsPressed[WPAD_MAX_WIIMOTES];
|
|
|
|
u32 wii_btnsHeld[WPAD_MAX_WIIMOTES];
|
|
|
|
u32 wupc_btnsPressed[WPAD_MAX_WIIMOTES];
|
|
|
|
u32 wupc_btnsHeld[WPAD_MAX_WIIMOTES];
|
|
|
|
u32 gc_btnsPressed;
|
|
|
|
u32 gc_btnsHeld;
|
|
|
|
u32 ds3_btnsPressed;
|
|
|
|
|
|
|
|
bool wBtn_Pressed(int btn, u8 ext);
|
|
|
|
bool wBtn_PressedChan(int btn, u8 ext, int &chan);
|
|
|
|
bool wBtn_Held(int btn, u8 ext);
|
|
|
|
bool wBtn_HeldChan(int btn, u8 ext, int &chan);
|
|
|
|
u32 wiidrc_to_pad(u32 btns);
|
|
|
|
u32 ds3_to_pad(u32 btns);
|
|
|
|
|
|
|
|
bool wii_btnRepeat(u8 btn);
|
2012-01-21 21:57:41 +01:00
|
|
|
u8 m_wpadLeftDelay;
|
|
|
|
u8 m_wpadDownDelay;
|
|
|
|
u8 m_wpadRightDelay;
|
|
|
|
u8 m_wpadUpDelay;
|
|
|
|
u8 m_wpadADelay;
|
|
|
|
//u8 m_wpadBDelay;
|
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
bool gc_btnRepeat(s64 btn);
|
2012-01-21 21:57:41 +01:00
|
|
|
u8 m_padLeftDelay;
|
|
|
|
u8 m_padDownDelay;
|
|
|
|
u8 m_padRightDelay;
|
|
|
|
u8 m_padUpDelay;
|
|
|
|
u8 m_padADelay;
|
|
|
|
//u8 m_padBDelay;
|
2018-08-01 14:27:12 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
float left_stick_angle[WPAD_MAX_WIIMOTES];
|
|
|
|
float left_stick_mag[WPAD_MAX_WIIMOTES];
|
|
|
|
float right_stick_angle[WPAD_MAX_WIIMOTES];
|
|
|
|
float right_stick_mag[WPAD_MAX_WIIMOTES];
|
|
|
|
s32 right_stick_skip[WPAD_MAX_WIIMOTES];
|
2018-08-01 14:27:12 +02:00
|
|
|
float wmote_roll[WPAD_MAX_WIIMOTES];
|
2012-01-21 21:57:41 +01:00
|
|
|
s32 wmote_roll_skip[WPAD_MAX_WIIMOTES];
|
|
|
|
bool enable_wmote_roll;
|
2018-08-01 14:27:12 +02:00
|
|
|
|
2012-05-25 21:48:35 +02:00
|
|
|
void SetupInput(bool reset_pos = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void ScanInput(void);
|
2018-08-01 14:27:12 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
void ButtonsPressed(void);
|
|
|
|
void ButtonsHeld(void);
|
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
void LeftStick();
|
2012-01-21 21:57:41 +01:00
|
|
|
bool lStick_Up(void);
|
|
|
|
bool lStick_Right(void);
|
|
|
|
bool lStick_Down(void);
|
|
|
|
bool lStick_Left(void);
|
|
|
|
|
|
|
|
bool rStick_Up(void);
|
|
|
|
bool rStick_Right(void);
|
|
|
|
bool rStick_Down(void);
|
|
|
|
bool rStick_Left(void);
|
|
|
|
|
|
|
|
bool wRoll_Left(void);
|
|
|
|
bool wRoll_Right(void);
|
|
|
|
|
|
|
|
bool WPadIR_Valid(int chan);
|
|
|
|
bool WPadIR_ANY(void);
|
2012-09-15 21:14:08 +02:00
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
u8 pointerhidedelay[WPAD_MAX_WIIMOTES];
|
|
|
|
u16 stickPointer_x[WPAD_MAX_WIIMOTES];
|
|
|
|
u16 stickPointer_y[WPAD_MAX_WIIMOTES];
|
|
|
|
bool m_show_pointer[WPAD_MAX_WIIMOTES];
|
|
|
|
bool ShowPointer(void);
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
void ShowZone(SZone zone, bool &showZone);
|
|
|
|
void ShowMainZone(void);
|
|
|
|
void ShowMainZone2(void);
|
|
|
|
void ShowMainZone3(void);
|
|
|
|
void ShowPrevZone(void);
|
|
|
|
void ShowNextZone(void);
|
|
|
|
void ShowGameZone(void);
|
|
|
|
bool m_show_zone_main;
|
|
|
|
bool m_show_zone_main2;
|
|
|
|
bool m_show_zone_main3;
|
|
|
|
bool m_show_zone_prev;
|
|
|
|
bool m_show_zone_next;
|
|
|
|
bool m_show_zone_game;
|
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
time_t no_input_time;
|
|
|
|
u32 NoInputTime(void);
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
volatile bool m_exit;
|
|
|
|
volatile bool m_thrdStop;
|
|
|
|
volatile bool m_thrdWorking;
|
|
|
|
volatile bool m_thrdNetwork;
|
|
|
|
float m_thrdStep;
|
|
|
|
float m_thrdStepLen;
|
|
|
|
mutex_t m_mutex;
|
|
|
|
wstringEx m_thrdMessage;
|
|
|
|
volatile float m_thrdProgress;
|
2012-05-03 01:08:11 +02:00
|
|
|
volatile float m_fileProgress;
|
2012-01-21 21:57:41 +01:00
|
|
|
volatile bool m_thrdMessageAdded;
|
|
|
|
volatile bool m_gameSelected;
|
2012-08-16 00:33:54 +02:00
|
|
|
GuiSound m_gameSound;
|
2012-11-04 15:13:42 +01:00
|
|
|
volatile bool m_soundThrdBusy;
|
2012-01-21 21:57:41 +01:00
|
|
|
lwp_t m_gameSoundThread;
|
|
|
|
bool m_gamesound_changed;
|
|
|
|
u8 m_bnrSndVol;
|
|
|
|
bool m_video_playing;
|
|
|
|
|
|
|
|
private:
|
2012-05-06 14:59:09 +02:00
|
|
|
enum WBFS_OP
|
|
|
|
{
|
|
|
|
WO_ADD_GAME,
|
|
|
|
WO_REMOVE_GAME,
|
|
|
|
WO_FORMAT,
|
|
|
|
WO_COPY_GAME,
|
|
|
|
};
|
2012-12-28 15:19:40 +01:00
|
|
|
typedef map<string, TexData> TexSet;
|
2012-11-03 20:16:03 +01:00
|
|
|
typedef map<string, GuiSound*> SoundSet;
|
2012-01-21 21:57:41 +01:00
|
|
|
struct SThemeData
|
|
|
|
{
|
|
|
|
TexSet texSet;
|
2013-09-02 00:31:46 +02:00
|
|
|
vector<SFont> fontSet;
|
2012-01-21 21:57:41 +01:00
|
|
|
SoundSet soundSet;
|
|
|
|
SFont btnFont;
|
|
|
|
SFont lblFont;
|
|
|
|
SFont titleFont;
|
|
|
|
SFont txtFont;
|
|
|
|
CColor btnFontColor;
|
|
|
|
CColor lblFontColor;
|
|
|
|
CColor txtFontColor;
|
|
|
|
CColor titleFontColor;
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData bg;
|
|
|
|
TexData btnTexL;
|
|
|
|
TexData btnTexR;
|
|
|
|
TexData btnTexC;
|
|
|
|
TexData btnTexLS;
|
|
|
|
TexData btnTexRS;
|
|
|
|
TexData btnTexCS;
|
|
|
|
TexData btnAUOn;
|
|
|
|
TexData btnAUOns;
|
|
|
|
TexData btnAUOff;
|
|
|
|
TexData btnAUOffs;
|
|
|
|
TexData btnENOn;
|
|
|
|
TexData btnENOns;
|
|
|
|
TexData btnENOff;
|
|
|
|
TexData btnENOffs;
|
|
|
|
TexData btnJAOn;
|
|
|
|
TexData btnJAOns;
|
|
|
|
TexData btnJAOff;
|
|
|
|
TexData btnJAOffs;
|
|
|
|
TexData btnFROn;
|
|
|
|
TexData btnFROns;
|
|
|
|
TexData btnFROff;
|
|
|
|
TexData btnFROffs;
|
|
|
|
TexData btnDEOn;
|
|
|
|
TexData btnDEOns;
|
|
|
|
TexData btnDEOff;
|
|
|
|
TexData btnDEOffs;
|
|
|
|
TexData btnESOn;
|
|
|
|
TexData btnESOns;
|
|
|
|
TexData btnESOff;
|
|
|
|
TexData btnESOffs;
|
|
|
|
TexData btnITOn;
|
|
|
|
TexData btnITOns;
|
|
|
|
TexData btnITOff;
|
|
|
|
TexData btnITOffs;
|
|
|
|
TexData btnNLOn;
|
|
|
|
TexData btnNLOns;
|
|
|
|
TexData btnNLOff;
|
|
|
|
TexData btnNLOffs;
|
|
|
|
TexData btnPTOn;
|
|
|
|
TexData btnPTOns;
|
|
|
|
TexData btnPTOff;
|
|
|
|
TexData btnPTOffs;
|
|
|
|
TexData btnRUOn;
|
|
|
|
TexData btnRUOns;
|
|
|
|
TexData btnRUOff;
|
|
|
|
TexData btnRUOffs;
|
|
|
|
TexData btnKOOn;
|
|
|
|
TexData btnKOOns;
|
|
|
|
TexData btnKOOff;
|
|
|
|
TexData btnKOOffs;
|
|
|
|
TexData btnZHCNOn;
|
|
|
|
TexData btnZHCNOns;
|
|
|
|
TexData btnZHCNOff;
|
|
|
|
TexData btnZHCNOffs;
|
|
|
|
TexData checkboxoff;
|
|
|
|
TexData checkboxoffs;
|
|
|
|
TexData checkboxon;
|
|
|
|
TexData checkboxons;
|
|
|
|
TexData checkboxHid;
|
|
|
|
TexData checkboxHids;
|
|
|
|
TexData checkboxReq;
|
|
|
|
TexData checkboxReqs;
|
|
|
|
TexData pbarTexL;
|
|
|
|
TexData pbarTexR;
|
|
|
|
TexData pbarTexC;
|
|
|
|
TexData pbarTexLS;
|
|
|
|
TexData pbarTexRS;
|
|
|
|
TexData pbarTexCS;
|
|
|
|
TexData btnTexPlus;
|
|
|
|
TexData btnTexPlusS;
|
|
|
|
TexData btnTexMinus;
|
|
|
|
TexData btnTexMinusS;
|
2012-11-03 20:16:03 +01:00
|
|
|
GuiSound *clickSound;
|
|
|
|
GuiSound *hoverSound;
|
|
|
|
GuiSound *cameraSound;
|
2012-01-21 21:57:41 +01:00
|
|
|
};
|
2012-07-18 01:14:05 +02:00
|
|
|
SThemeData theme;
|
2012-01-21 21:57:41 +01:00
|
|
|
struct SCFParamDesc
|
|
|
|
{
|
2012-05-06 14:59:09 +02:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PDT_EMPTY,
|
|
|
|
PDT_FLOAT,
|
|
|
|
PDT_V3D,
|
|
|
|
PDT_COLOR,
|
|
|
|
PDT_BOOL,
|
|
|
|
PDT_INT,
|
|
|
|
PDT_TXTSTYLE,
|
|
|
|
} paramType[4];
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PDD_BOTH,
|
|
|
|
PDD_NORMAL,
|
|
|
|
PDD_SELECTED,
|
|
|
|
} domain;
|
2012-01-21 21:57:41 +01:00
|
|
|
bool scrnFmt;
|
|
|
|
const char name[32];
|
|
|
|
const char valName[4][64];
|
|
|
|
const char key[4][48];
|
|
|
|
float step[4];
|
|
|
|
float minMaxVal[4][2];
|
|
|
|
};
|
|
|
|
//
|
|
|
|
bool _loadList(void);
|
2016-04-03 02:51:40 +02:00
|
|
|
bool _loadWiiList(void);
|
|
|
|
bool _loadGamecubeList(void);
|
2012-04-08 17:54:34 +02:00
|
|
|
bool _loadChannelList(void);
|
2016-04-03 02:51:40 +02:00
|
|
|
bool _loadPluginList(void);
|
2019-02-08 01:34:30 +01:00
|
|
|
bool _loadHomebrewList(const char *HB_Dir);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _initCF(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
//
|
2012-12-21 20:51:22 +01:00
|
|
|
void _initBoot(void);
|
2012-11-03 20:16:03 +01:00
|
|
|
void _initMainMenu();
|
|
|
|
void _initErrorMenu();
|
|
|
|
void _initConfigMenu();
|
|
|
|
void _initConfigAdvMenu();
|
|
|
|
void _initConfig3Menu();
|
|
|
|
void _initConfig4Menu();
|
|
|
|
void _initConfigSndMenu();
|
|
|
|
void _initConfigScreenMenu();
|
2016-12-14 19:47:13 +01:00
|
|
|
void _initConfigGCMenu();
|
2018-10-31 20:51:15 +01:00
|
|
|
void _initConfig7Menu();
|
2016-12-14 19:47:13 +01:00
|
|
|
void _initPartitionsCfgMenu();
|
2012-11-03 20:16:03 +01:00
|
|
|
void _initGameMenu();
|
|
|
|
void _initDownloadMenu();
|
|
|
|
void _initCodeMenu();
|
|
|
|
void _initAboutMenu();
|
|
|
|
void _initWBFSMenu();
|
|
|
|
void _initCFThemeMenu();
|
|
|
|
void _initGameSettingsMenu();
|
|
|
|
void _initCheatSettingsMenu();
|
|
|
|
void _initSourceMenu();
|
2013-09-12 15:04:50 +02:00
|
|
|
void _initCfgSrc();
|
2016-11-07 16:06:00 +01:00
|
|
|
void _initCfgHB();
|
2012-11-03 20:16:03 +01:00
|
|
|
void _initPluginSettingsMenu();
|
|
|
|
void _initCategorySettingsMenu();
|
|
|
|
void _initGameInfoMenu();
|
|
|
|
void _initNandEmuMenu();
|
|
|
|
void _initHomeAndExitToMenu();
|
2013-06-27 19:14:11 +02:00
|
|
|
void _initCoverBanner();
|
2013-06-28 00:16:30 +02:00
|
|
|
void _initExplorer();
|
2013-07-07 00:35:05 +02:00
|
|
|
void _initWad();
|
2013-08-17 15:21:43 +02:00
|
|
|
void _initPathsMenu();
|
2012-01-21 21:57:41 +01:00
|
|
|
//
|
2012-05-25 16:21:43 +02:00
|
|
|
void _textSource(void);
|
2013-09-12 15:04:50 +02:00
|
|
|
void _textCfgSrc(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _textCfgHB(void);
|
2012-05-05 22:07:54 +02:00
|
|
|
void _textPluginSettings(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _textCategorySettings(void);
|
|
|
|
void _textCheatSettings(void);
|
|
|
|
void _textError(void);
|
|
|
|
void _textConfig(void);
|
|
|
|
void _textConfig3(void);
|
|
|
|
void _textConfigScreen(void);
|
|
|
|
void _textConfig4(void);
|
|
|
|
void _textConfigAdv(void);
|
|
|
|
void _textConfigSnd(void);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _textConfigGC(void);
|
|
|
|
void _textPartitionsCfg(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _textGame(void);
|
|
|
|
void _textDownload(void);
|
|
|
|
void _textCode(void);
|
|
|
|
void _textAbout(void);
|
|
|
|
void _textWBFS(void);
|
|
|
|
void _textGameSettings(void);
|
|
|
|
void _textGameInfo(void);
|
2012-05-03 01:08:11 +02:00
|
|
|
void _textNandEmu(void);
|
2012-06-21 19:28:46 +02:00
|
|
|
void _textHome(void);
|
2012-07-05 21:57:28 +02:00
|
|
|
void _textExitTo(void);
|
2019-10-28 16:01:52 +01:00
|
|
|
void _textShutdown(void);
|
2012-12-21 20:51:22 +01:00
|
|
|
void _textBoot(void);
|
2013-06-27 19:14:11 +02:00
|
|
|
void _textCoverBanner(void);
|
2013-06-28 00:16:30 +02:00
|
|
|
void _textExplorer(void);
|
2013-07-07 00:35:05 +02:00
|
|
|
void _textWad(void);
|
2013-08-17 15:21:43 +02:00
|
|
|
void _textPaths(void);
|
2012-12-21 20:51:22 +01:00
|
|
|
//
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideCheatSettings(bool instant = false);
|
|
|
|
void _hideError(bool instant = false);
|
|
|
|
void _hideMain(bool instant = false);
|
2012-05-04 05:46:18 +02:00
|
|
|
void _hideConfigCommon(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideConfig(bool instant = false);
|
|
|
|
void _hideConfig3(bool instant = false);
|
|
|
|
void _hideConfigScreen(bool instant = false);
|
|
|
|
void _hideConfig4(bool instant = false);
|
|
|
|
void _hideConfigAdv(bool instant = false);
|
|
|
|
void _hideConfigSnd(bool instant = false);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _hideConfigGC(bool instant = false);
|
2018-10-15 16:23:34 +02:00
|
|
|
void _hideConfigGCPage(bool instant = false);
|
2018-10-31 20:51:15 +01:00
|
|
|
void _hideConfig7(bool instant = false);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _hidePartitionsCfg(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideGame(bool instant = false);
|
|
|
|
void _hideDownload(bool instant = false);
|
2012-02-12 02:43:31 +01:00
|
|
|
void _hideSettings(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideCode(bool instant = false);
|
|
|
|
void _hideAbout(bool instant = false);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _hideBoot(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideWBFS(bool instant = false);
|
|
|
|
void _hideCFTheme(bool instant = false);
|
|
|
|
void _hideGameSettings(bool instant = false);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _hideGameSettingsPg(bool instant = false);
|
2012-05-25 16:21:43 +02:00
|
|
|
void _hideSource(bool instant = false);
|
2012-05-05 22:07:54 +02:00
|
|
|
void _hidePluginSettings(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _hideCategorySettings(bool instant = false);
|
|
|
|
void _hideGameInfo(bool instant = false);
|
2012-05-03 01:08:11 +02:00
|
|
|
void _hideNandEmu(bool instant = false);
|
2016-12-01 01:05:39 +01:00
|
|
|
void _hideNandEmuPg();
|
2012-06-21 19:28:46 +02:00
|
|
|
void _hideHome(bool instant = false);
|
2012-07-05 21:57:28 +02:00
|
|
|
void _hideExitTo(bool instant = false);
|
2019-10-28 16:01:52 +01:00
|
|
|
void _hideShutdown(bool instant = false);
|
2013-06-27 19:14:11 +02:00
|
|
|
void _hideCoverBanner(bool instant = false);
|
2013-06-28 00:16:30 +02:00
|
|
|
void _hideExplorer(bool instant = false);
|
2013-07-07 00:35:05 +02:00
|
|
|
void _hideWad(bool instant = false);
|
2013-08-17 15:21:43 +02:00
|
|
|
void _hidePaths(bool instant = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
//
|
|
|
|
void _showError(void);
|
|
|
|
void _showMain(void);
|
2012-12-28 15:19:40 +01:00
|
|
|
void _showConfigCommon(const TexData & bg, int page);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _showConfig(void);
|
|
|
|
void _showConfig3(void);
|
|
|
|
void _showConfigScreen(void);
|
|
|
|
void _showConfig4(void);
|
|
|
|
void _showConfigAdv(void);
|
|
|
|
void _showConfigSnd(void);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _showConfigGC(void);
|
2018-10-15 16:23:34 +02:00
|
|
|
void _showConfigGCPage(void);
|
2018-10-31 20:51:15 +01:00
|
|
|
void _showConfig7(int curPage);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _showPartitionsCfg(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _showNandEmu(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _showGame(void);
|
|
|
|
void _showDownload(void);
|
2012-02-12 02:43:31 +01:00
|
|
|
void _showSettings();
|
2012-01-21 21:57:41 +01:00
|
|
|
void _showCode(void);
|
|
|
|
void _showAbout(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _showBoot(void);
|
2012-05-25 16:21:43 +02:00
|
|
|
void _showSource(void);
|
2012-05-05 22:07:54 +02:00
|
|
|
void _showPluginSettings(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _showCategorySettings(void);
|
|
|
|
void _showCheatSettings(void);
|
|
|
|
void _showGameInfo(void);
|
|
|
|
void _showWBFS(WBFS_OP op);
|
|
|
|
void _showCFTheme(u32 curParam, int version, bool wide);
|
|
|
|
void _showGameSettings(void);
|
2012-06-21 19:28:46 +02:00
|
|
|
void _showHome(void);
|
2012-07-05 21:57:28 +02:00
|
|
|
void _showExitTo(void);
|
2019-10-28 16:01:52 +01:00
|
|
|
void _showShutdown(void);
|
2013-06-27 19:14:11 +02:00
|
|
|
void _showCoverBanner(void);
|
2013-06-28 00:16:30 +02:00
|
|
|
void _showExplorer(void);
|
2013-07-07 00:35:05 +02:00
|
|
|
void _showWad(void);
|
2013-08-17 15:21:43 +02:00
|
|
|
void _showPaths(void);
|
2013-09-06 01:52:21 +02:00
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
void _showCF(bool refreshList = false);
|
|
|
|
void _refreshExplorer(s8 direction = 0);
|
- PHASE 2 (finally!)
- New Coverflow theme format. no more emuflow, coverflow, brewflow. now we have coverflow, shortflow, sideflow, and smallflow.
- coverflow is the normal coverflow.
- shortflow is automatically used for plugins if all selected plugins require a short CD style cover such as GB, GBC, GBA, and playstation. if there's more let me know and i can add them.
- sideflow is automatically used for plugins if all selected plugins require a cover on its side such as SNES and Nintendo 64.
- smallflow is used if smallbox is set for homebrew and sourceflow.
- no more need for emuflow= with a source btn in the source menu. it is done automatically now using the plugins magic#
- each flow has its own number of modes/layouts. so now coveflow can have 8, smallfow 1, sideflow, 6, and shortflow 4 or whatever you want.
- adjust coverflow works with no problems. just choose the view first before entering the adjust coverflow menu.
- other minor code changes here and there.
- remember themes are now in themes_lite and the coverflow part is seperated and put in the coverflows folder with the same name as the theme or you can use a default coverflow named default.ini for all themes.
2016-05-11 19:58:36 +02:00
|
|
|
void _setSrcOptions(void);
|
2012-05-25 16:21:43 +02:00
|
|
|
void _updateSourceBtns(void);
|
2012-10-04 16:35:08 +02:00
|
|
|
void _updatePluginText(void);
|
2012-05-05 22:07:54 +02:00
|
|
|
void _updatePluginCheckboxes(void);
|
2012-04-08 16:48:50 +02:00
|
|
|
void _updateCheckboxes(void);
|
2017-05-15 19:50:24 +02:00
|
|
|
void _getGameCategories(void);
|
|
|
|
void _setGameCategories(void);
|
2019-11-24 00:54:38 +01:00
|
|
|
void _getCustomBgTex(void);
|
2019-01-23 01:18:13 +01:00
|
|
|
void _setMainBg(void);
|
2019-11-24 00:54:38 +01:00
|
|
|
void _setBg(const TexData &bgTex, const TexData &bglqTex);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _updateBg(void);
|
|
|
|
void _drawBg(void);
|
|
|
|
void _updateText(void);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _setPartition(s8 direction = 0);
|
|
|
|
void _setCFVersion(int version);
|
|
|
|
int _getCFVersion(void);
|
2012-05-04 05:46:18 +02:00
|
|
|
//
|
2012-01-21 21:57:41 +01:00
|
|
|
void _config(int page);
|
2012-05-04 05:46:18 +02:00
|
|
|
int _configCommon(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
int _config1(void);
|
|
|
|
int _config3(void);
|
|
|
|
int _configScreen(void);
|
|
|
|
int _config4(void);
|
|
|
|
int _configAdv(void);
|
|
|
|
int _configSnd(void);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _configGC(void);
|
2018-10-31 20:51:15 +01:00
|
|
|
int _config7(int curPage);
|
2016-12-14 19:47:13 +01:00
|
|
|
void _partitionsCfg(void);
|
2012-05-03 01:08:11 +02:00
|
|
|
int _NandEmuCfg(void);
|
|
|
|
int _AutoExtractSave(string gameId);
|
2012-05-11 01:38:34 +02:00
|
|
|
int _FlashSave(string gameId);
|
2012-05-04 05:46:18 +02:00
|
|
|
enum configPageChanges
|
|
|
|
{
|
|
|
|
CONFIG_PAGE_DEC = -1,
|
|
|
|
CONFIG_PAGE_NO_CHANGE = 0,
|
|
|
|
CONFIG_PAGE_INC = 1,
|
|
|
|
CONFIG_PAGE_BACK,
|
|
|
|
};
|
2012-02-01 23:26:51 +01:00
|
|
|
void _game(bool launch = false);
|
2013-08-09 16:52:17 +02:00
|
|
|
void _downloadUrl(const char *url, u8 **dl_file, u32 *dl_size);
|
2018-12-13 01:03:33 +01:00
|
|
|
void _download(string gameId = string(), int dl_type = 0);
|
2016-04-02 18:47:18 +02:00
|
|
|
bool _code(char code[4], bool erase = false);
|
2012-08-14 17:42:34 +02:00
|
|
|
void _about(bool help = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
bool _wbfsOp(WBFS_OP op);
|
|
|
|
void _cfTheme(void);
|
|
|
|
void _gameinfo(void);
|
2017-04-18 01:23:50 +02:00
|
|
|
void _gameSettings(const dir_discHdr *GameHdr, bool disc = false);
|
2013-06-27 19:14:11 +02:00
|
|
|
void _CoverBanner(void);
|
2018-06-12 23:27:52 +02:00
|
|
|
int _cacheCovers(void);
|
2013-06-28 00:16:30 +02:00
|
|
|
void _Explorer(void);
|
2013-08-19 16:02:03 +02:00
|
|
|
const char *_FolderExplorer(const char *startPath);
|
2016-12-01 01:05:39 +01:00
|
|
|
void _wadExplorer(void);
|
2016-04-03 02:31:02 +02:00
|
|
|
void _Wad(const char *wad_path = NULL);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _CheatSettings();
|
2012-06-21 14:25:47 +02:00
|
|
|
bool _Source();
|
2013-09-12 15:04:50 +02:00
|
|
|
void _CfgSrc();
|
2016-11-07 16:06:00 +01:00
|
|
|
void _CfgHB();
|
2012-05-05 22:07:54 +02:00
|
|
|
void _PluginSettings();
|
2012-08-14 17:42:34 +02:00
|
|
|
void _CategorySettings(bool fromGameSet = false);
|
2012-06-21 19:28:46 +02:00
|
|
|
bool _Home();
|
2012-07-05 21:57:28 +02:00
|
|
|
bool _ExitTo();
|
2019-10-28 16:01:52 +01:00
|
|
|
void _Shutdown();
|
2013-02-14 22:50:46 +01:00
|
|
|
bool _Boot();
|
2013-08-17 15:21:43 +02:00
|
|
|
void _Paths();
|
2013-09-12 15:04:50 +02:00
|
|
|
void _sourceFlow();
|
2018-10-01 23:01:43 +02:00
|
|
|
int _getSrcFlow();
|
|
|
|
void _setSrcFlow(int version);
|
2019-05-19 22:33:21 +02:00
|
|
|
bool _srcTierBack(bool home);
|
2018-10-13 00:16:52 +02:00
|
|
|
void _setSrcFlowBg();
|
2012-09-09 20:35:15 +02:00
|
|
|
void _mainLoopCommon(bool withCF = false, bool adjusting = false);
|
2012-12-08 17:17:35 +01:00
|
|
|
void _netInit();
|
2016-11-07 16:06:00 +01:00
|
|
|
void _loadDefaultFont(void);
|
2012-11-04 00:46:21 +01:00
|
|
|
bool _loadFile(u8 * &buffer, u32 &size, const char *path, const char *file);
|
2019-05-27 18:04:46 +02:00
|
|
|
int _loadGameIOS(u8 ios, int userIOS, string id, bool RealNAND_Channels = false);
|
2013-03-31 01:57:42 +01:00
|
|
|
void _launch(const dir_discHdr *hdr);
|
2019-05-27 18:04:46 +02:00
|
|
|
void _launchWii(dir_discHdr *hdr, bool dvd, bool disc_cfg = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _launchChannel(dir_discHdr *hdr);
|
2012-05-06 14:59:09 +02:00
|
|
|
void _launchHomebrew(const char *filepath, vector<string> arguments);
|
2012-07-14 18:55:14 +02:00
|
|
|
void _launchGC(dir_discHdr *hdr, bool disc);
|
2019-05-27 18:04:46 +02:00
|
|
|
void _launchPlugin(dir_discHdr *hdr);
|
2013-03-23 18:06:06 +01:00
|
|
|
void _launchShutdown();
|
2018-07-16 15:08:45 +02:00
|
|
|
vector<string> _getMetaXML(const char *bootpath);
|
|
|
|
void _extractBnr(const dir_discHdr *hdr);
|
2017-05-15 19:50:24 +02:00
|
|
|
void _setCurrentItem(const dir_discHdr *hdr);
|
2016-11-07 16:06:00 +01:00
|
|
|
void _exitWiiflow();
|
|
|
|
void exitHandler(int ExitTo);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _setAA(int aa);
|
2012-11-03 20:16:03 +01:00
|
|
|
void _loadCFCfg();
|
2012-01-21 21:57:41 +01:00
|
|
|
void _loadCFLayout(int version, bool forceAA = false, bool otherScrnFmt = false);
|
2012-05-06 14:59:09 +02:00
|
|
|
Vector3D _getCFV3D(const string &domain, const string &key, const Vector3D &def, bool otherScrnFmt = false);
|
|
|
|
int _getCFInt(const string &domain, const string &key, int def, bool otherScrnFmt = false);
|
|
|
|
float _getCFFloat(const string &domain, const string &key, float def, bool otherScrnFmt = false);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _cfParam(bool inc, int i, const SCFParamDesc &p, int cfVersion, bool wide);
|
|
|
|
void _buildMenus(void);
|
|
|
|
void _cleanupDefaultFont();
|
2012-11-03 20:16:03 +01:00
|
|
|
void _Theme_Cleanup();
|
2012-01-21 21:57:41 +01:00
|
|
|
const char *_domainFromView(void);
|
2012-11-01 17:39:42 +01:00
|
|
|
const char *_cfDomain(bool selected = false);
|
2016-11-07 16:06:00 +01:00
|
|
|
//void UpdateCache(u32 view = COVERFLOW_MAX);
|
2012-11-01 17:39:42 +01:00
|
|
|
void RemoveCover(const char *id);
|
2019-01-30 23:37:36 +01:00
|
|
|
SFont _dfltFont(u32 fontSize, u32 lineSpacing, u32 weight, u32 index, const char *genKey);
|
|
|
|
SFont _font(const char *domain, const char *key, SFont def_font);
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData _texture(const char *domain, const char *key, TexData &def, bool freeDef = true);
|
|
|
|
vector<TexData> _textures(const char *domain, const char *key);
|
2012-01-21 21:57:41 +01:00
|
|
|
void _showWaitMessage();
|
|
|
|
public:
|
2012-01-30 15:29:40 +01:00
|
|
|
void _hideWaitMessage();
|
2013-06-26 23:35:38 +02:00
|
|
|
void GC_Messenger(int message, int info, char *cinfo);
|
2013-08-14 21:11:38 +02:00
|
|
|
|
|
|
|
/* general thread updating stuff */
|
|
|
|
u64 m_thrdTotal;
|
2018-11-28 01:08:23 +01:00
|
|
|
void update_pThread(u64 amount, bool add = true);
|
2012-01-21 21:57:41 +01:00
|
|
|
private:
|
2014-03-18 03:39:42 +01:00
|
|
|
void _cleanupBanner(bool gamechange = false);
|
|
|
|
void _cleanupVideo();
|
|
|
|
bool _startVideo();
|
2018-05-29 11:59:57 +02:00
|
|
|
static void * _pThread(void *obj);
|
2013-08-14 21:11:38 +02:00
|
|
|
void _start_pThread(void);
|
|
|
|
void _stop_pThread(void);
|
|
|
|
lwp_t m_thrdPtr;
|
|
|
|
volatile bool m_thrdInstalling;
|
|
|
|
volatile bool m_thrdUpdated;
|
|
|
|
volatile bool m_thrdDone;
|
|
|
|
vu64 m_thrdWritten;
|
|
|
|
|
2016-04-30 16:19:30 +02:00
|
|
|
GuiSound *_sound(CMenu::SoundSet &soundSet, const char *filename, const u8 * snd, u32 len, const char *name, bool isAllocated);
|
2012-11-04 15:13:42 +01:00
|
|
|
GuiSound *_sound(CMenu::SoundSet &soundSet, const char *domain, const char *key, const char *name);
|
- PHASE 2 (finally!)
- New Coverflow theme format. no more emuflow, coverflow, brewflow. now we have coverflow, shortflow, sideflow, and smallflow.
- coverflow is the normal coverflow.
- shortflow is automatically used for plugins if all selected plugins require a short CD style cover such as GB, GBC, GBA, and playstation. if there's more let me know and i can add them.
- sideflow is automatically used for plugins if all selected plugins require a cover on its side such as SNES and Nintendo 64.
- smallflow is used if smallbox is set for homebrew and sourceflow.
- no more need for emuflow= with a source btn in the source menu. it is done automatically now using the plugins magic#
- each flow has its own number of modes/layouts. so now coveflow can have 8, smallfow 1, sideflow, 6, and shortflow 4 or whatever you want.
- adjust coverflow works with no problems. just choose the view first before entering the adjust coverflow menu.
- other minor code changes here and there.
- remember themes are now in themes_lite and the coverflow part is seperated and put in the coverflows folder with the same name as the theme or you can use a default coverflow named default.ini for all themes.
2016-05-11 19:58:36 +02:00
|
|
|
u16 _textStyle(const char *domain, const char *key, u16 def, bool coverflow = false);
|
2012-11-03 20:16:03 +01:00
|
|
|
s16 _addButton(const char *domain, SFont font, const wstringEx &text, int x, int y, u32 width, u32 height, const CColor &color);
|
2012-12-28 15:19:40 +01:00
|
|
|
s16 _addPicButton(const char *domain, TexData &texNormal, TexData &texSelected, int x, int y, u32 width, u32 height);
|
2012-11-03 20:16:03 +01:00
|
|
|
s16 _addLabel(const char *domain, SFont font, const wstringEx &text, int x, int y, u32 width, u32 height, const CColor &color, s16 style);
|
2012-12-28 15:19:40 +01:00
|
|
|
s16 _addLabel(const char *domain, SFont font, const wstringEx &text, int x, int y, u32 width, u32 height, const CColor &color, s16 style, TexData &bg);
|
2012-11-03 20:16:03 +01:00
|
|
|
s16 _addProgressBar(const char *domain, int x, int y, u32 width, u32 height);
|
2012-09-13 16:54:17 +02:00
|
|
|
void _setHideAnim(s16 id, const char *domain, int dx, int dy, float scaleX, float scaleY);
|
2012-11-03 20:16:03 +01:00
|
|
|
void _addUserLabels(s16 *ids, u32 size, const char *domain);
|
|
|
|
void _addUserLabels(s16 *ids, u32 start, u32 size, const char *domain);
|
2012-01-21 21:57:41 +01:00
|
|
|
//
|
|
|
|
const wstringEx _t(const char *key, const wchar_t *def = L"") { return m_loc.getWString(m_curLanguage, key, def); }
|
|
|
|
const wstringEx _fmt(const char *key, const wchar_t *def);
|
|
|
|
wstringEx _getNoticeTranslation(int sorting, wstringEx curLetter);
|
|
|
|
//
|
|
|
|
void _setThrdMsg(const wstringEx &msg, float progress);
|
2012-05-03 01:08:11 +02:00
|
|
|
void _setDumpMsg(const wstringEx &msg, float progress, float fileprog);
|
2018-06-06 13:32:45 +02:00
|
|
|
void _downloadProgress(void *obj, int size, int position);
|
2018-12-13 01:03:33 +01:00
|
|
|
int _coverDownloader();
|
2012-01-21 21:57:41 +01:00
|
|
|
int _gametdbDownloaderAsync();
|
2018-12-13 01:03:33 +01:00
|
|
|
int _bannerDownloader();
|
2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
static s32 _networkComplete(s32 result, void *usrData);
|
|
|
|
void _initAsyncNetwork();
|
|
|
|
bool _isNetworkAvailable();
|
|
|
|
int _initNetwork();
|
|
|
|
void LoadView(void);
|
|
|
|
static void _addDiscProgress(int status, int total, void *user_data);
|
2012-12-27 21:22:40 +01:00
|
|
|
static void _ShowProgress(int dumpstat, int dumpprog, int filestat, int fileprog, int files, int folders, const char *tmess, void *user_data);
|
2018-05-29 11:59:57 +02:00
|
|
|
static void * _gameInstaller(void *obj);
|
|
|
|
static void * _GCcopyGame(void *obj);
|
2016-06-20 23:03:40 +02:00
|
|
|
bool _searchGamesByID(const char *gameId);
|
2013-06-26 23:35:38 +02:00
|
|
|
int _GCgameInstaller();
|
2012-05-03 01:08:11 +02:00
|
|
|
float m_progress;
|
|
|
|
float m_fprogress;
|
|
|
|
int m_fileprog;
|
|
|
|
int m_filesize;
|
|
|
|
int m_dumpsize;
|
|
|
|
int m_filesdone;
|
|
|
|
int m_foldersdone;
|
|
|
|
int m_nandexentry;
|
2012-01-21 21:57:41 +01:00
|
|
|
wstringEx _optBoolToString(int b);
|
|
|
|
void _stopSounds(void);
|
2018-05-29 11:59:57 +02:00
|
|
|
static void * _NandDumper(void *obj);
|
|
|
|
static void * _NandFlasher(void *obj);
|
2018-07-09 16:53:35 +02:00
|
|
|
int _FindEmuPart(bool savesnand, bool searchvalid);
|
|
|
|
bool _checkSave(string id, int nand_type);
|
2013-08-08 20:21:11 +02:00
|
|
|
bool _TestEmuNand(int epart, const char *path, bool indept);
|
2017-09-22 00:03:41 +02:00
|
|
|
void _checkEmuNandSettings(void);
|
|
|
|
void _FullNandCheck(void);
|
2016-12-01 01:05:39 +01:00
|
|
|
void _listEmuNands(const char *path, vector<string> &emuNands);
|
2012-02-17 22:40:38 +01:00
|
|
|
|
2018-06-06 23:56:21 +02:00
|
|
|
int _downloadCheatFileAsync();
|
2018-05-29 11:59:57 +02:00
|
|
|
static void * _downloadUrlAsync(void *obj);
|
2012-02-17 22:40:38 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
void _playGameSound(void);
|
2017-04-18 01:23:50 +02:00
|
|
|
void _stopGameSoundThread(void);
|
2018-05-29 11:59:57 +02:00
|
|
|
static void * _gameSoundThread(void *obj);
|
2012-02-17 22:40:38 +01:00
|
|
|
|
2018-08-01 14:27:12 +02:00
|
|
|
void _load_installed_cioses();
|
|
|
|
map<u8, u8> _installed_cios;
|
|
|
|
typedef map<u8, u8>::iterator CIOSItr;
|
2012-09-05 17:52:32 +02:00
|
|
|
|
2018-10-15 16:23:34 +02:00
|
|
|
struct SOption { const char id[11]; const wchar_t text[16]; };
|
2012-06-28 15:05:31 +02:00
|
|
|
|
|
|
|
static const SOption _GlobalVideoModes[6];
|
|
|
|
static const SOption _VideoModes[7];
|
2016-12-01 01:05:39 +01:00
|
|
|
static const SOption _languages[11];
|
2012-03-04 22:33:14 +01:00
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
static const SOption _GlobalGCvideoModes[6];
|
2012-03-04 22:33:14 +01:00
|
|
|
static const SOption _GlobalGClanguages[7];
|
2017-04-18 01:23:50 +02:00
|
|
|
static const SOption _GCvideoModes[7];
|
2012-03-04 22:33:14 +01:00
|
|
|
static const SOption _GClanguages[8];
|
2016-12-01 01:05:39 +01:00
|
|
|
static const SOption _GlobalGCLoaders[2];
|
|
|
|
static const SOption _GCLoader[3];
|
2012-03-04 22:33:14 +01:00
|
|
|
|
2016-12-01 01:05:39 +01:00
|
|
|
static const SOption _ChannelsType[3];
|
2012-06-07 02:34:47 +02:00
|
|
|
static const SOption _NandEmu[2];
|
2017-09-22 00:03:41 +02:00
|
|
|
static const SOption _SaveEmu[4];
|
|
|
|
static const SOption _GlobalSaveEmu[3];
|
2012-01-27 14:59:36 +01:00
|
|
|
static const SOption _AspectRatio[3];
|
2016-04-02 18:58:12 +02:00
|
|
|
static const SOption _NinEmuCard[5];
|
2012-01-21 21:57:41 +01:00
|
|
|
static const SOption _vidModePatch[4];
|
2013-05-21 14:43:14 +02:00
|
|
|
static const SOption _debugger[3];
|
2012-01-21 21:57:41 +01:00
|
|
|
static const SOption _hooktype[8];
|
2017-09-22 00:03:41 +02:00
|
|
|
static const SOption _exitTo[3];
|
2016-12-01 01:05:39 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
static int _version[9];
|
|
|
|
static const SCFParamDesc _cfParams[];
|
|
|
|
static const int _nbCfgPages;
|
2014-03-17 18:38:32 +01:00
|
|
|
//thread stack
|
|
|
|
static u8 downloadStack[8192];
|
|
|
|
static const u32 downloadStackSize;
|
2012-01-21 21:57:41 +01:00
|
|
|
};
|
|
|
|
|
2013-03-28 14:02:50 +01:00
|
|
|
extern CMenu mainMenu;
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
#define ARRAY_SIZE(a) (sizeof a / sizeof a[0])
|
|
|
|
|
|
|
|
#endif // !defined(__MENU_HPP)
|