2012-08-05 15:48:15 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
#include "menu.hpp"
|
2012-06-16 19:03:23 +02:00
|
|
|
#include "types.h"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "loader/wbfs.h"
|
|
|
|
#include "libwbfs/wiidisc.h"
|
2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
#define ARRAY_SIZE(a) (sizeof a / sizeof a[0])
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
u8 m_gameSettingsMaxPgs = 5;
|
|
|
|
u8 m_gameSettingsPage = 0;
|
|
|
|
u8 GCLoader = 0;
|
2017-04-18 01:23:50 +02:00
|
|
|
int videoScale, videoOffset;
|
|
|
|
const dir_discHdr *GameHdr;
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2016-04-03 02:51:40 +02:00
|
|
|
template <class T> static inline T loopNum(T i, T s)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2016-04-03 02:51:40 +02:00
|
|
|
return (i + s) % s;
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
wstringEx CMenu::_optBoolToString(int i)
|
|
|
|
{
|
|
|
|
switch (i)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
return _t("off", L"Off");
|
|
|
|
case 1:
|
|
|
|
return _t("on", L"On");
|
|
|
|
default:
|
|
|
|
return _t("def", L"Default");
|
|
|
|
}
|
|
|
|
}
|
2013-01-20 12:34:21 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
void CMenu::_hideGameSettings(bool instant)
|
|
|
|
{
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblPage, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPageM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPageP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnBack, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblTitle, instant);
|
2016-12-14 19:47:13 +01:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameSettingsLblUser); ++i)
|
|
|
|
if(m_gameSettingsLblUser[i] != -1)
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblUser[i], instant);
|
|
|
|
_hideGameSettingsPg(instant);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_hideGameSettingsPg(bool instant)
|
|
|
|
{
|
|
|
|
//Does not hide title, page, back, or user labels
|
2016-12-01 01:05:39 +01:00
|
|
|
//Wii & Channels
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblHooktype, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblHooktypeVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnHooktypeM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnHooktypeP, instant);
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblVipatch, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnVipatch, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblCountryPatch, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnCountryPatch, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblPatchVidModes, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblPatchVidModesVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPatchVidModesM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPatchVidModesP, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblAspectRatio, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblAspectRatioVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnAspectRatioP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnAspectRatioM, instant);
|
2012-01-21 22:15:45 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblGameIOS, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblIOS, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnIOSP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnIOSM, instant);
|
2016-12-14 19:47:13 +01:00
|
|
|
//wii only
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblEmulation, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblEmulationVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnEmulationP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnEmulationM, instant);
|
2012-05-11 01:38:34 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblExtractSave, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnExtractSave, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblFlashSave, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnFlashSave, instant);
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblPrivateServer, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPrivateServer, instant);
|
2019-09-23 16:20:22 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblFix480p, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnFix480p, instant);
|
2016-12-14 19:47:13 +01:00
|
|
|
//All
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblManage, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnManage, instant);
|
2019-03-04 21:29:46 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsBtnAdultOnly, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblAdultOnly, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblGameLanguage, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblLanguage, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnLanguageP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnLanguageM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblGameVideo, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblVideo, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnVideoP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnVideoM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblOcarina, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnOcarina, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblCheat, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnCheat, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblDebugger, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblDebuggerV, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnDebuggerP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnDebuggerM, instant);
|
2013-01-19 21:48:07 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblLED, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnLED, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
//GC only
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblEmuMemCard, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblEmuMemCard_Val, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnEmuMemCard_P, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnEmuMemCard_M, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblDevoMemcardEmu, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnDevoMemcardEmu, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblWidescreen, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnWidescreen, instant);
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblWiiuWidescreen, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnWiiuWidescreen, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblGCLoader, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblGCLoader_Val, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnGCLoader_P, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnGCLoader_M, instant);
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblCC_Rumble, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnCC_Rumble, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblNATIVE_CTL, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnNATIVE_CTL, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblDeflicker, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnDeflicker, instant);
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblArcade, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnArcade, instant);
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblSkip_IPL, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnSkip_IPL, instant);
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblPatch50, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPatch50, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblWidthVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblWidth, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnWidthP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnWidthM, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblPosVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblPos, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPosP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnPosM, instant);
|
2019-11-01 01:00:58 +01:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblBBA, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnBBA, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblNetProfVal, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblNetProf, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnNetProfP, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnNetProfM, instant);
|
2016-12-01 01:05:39 +01:00
|
|
|
// Channels only
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblApploader, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnApploader, instant);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.hide(m_gameSettingsLblCustom, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnCustom, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsLblLaunchNK, instant);
|
|
|
|
m_btnMgr.hide(m_gameSettingsBtnLaunchNK, instant);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
void CMenu::_showGameSettings()
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-02-11 21:55:44 +01:00
|
|
|
u32 i;
|
2019-03-04 21:29:46 +01:00
|
|
|
char id[74];
|
|
|
|
memset(id, 0, 74);
|
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_HOMEBREW)
|
|
|
|
wcstombs(id, GameHdr->title, 63);
|
|
|
|
else if(GameHdr->type == TYPE_PLUGIN)
|
|
|
|
{
|
|
|
|
strncpy(m_plugin.PluginMagicWord, fmt("%08x", GameHdr->settings[0]), 8);
|
|
|
|
if(strrchr(GameHdr->path, '/') != NULL)
|
2019-05-28 23:34:32 +02:00
|
|
|
{
|
|
|
|
char gameTitle[64];
|
|
|
|
gameTitle[63] = '\0';
|
|
|
|
wcstombs(gameTitle, GameHdr->title, 63);
|
|
|
|
strncpy(id, fmt("%s/%s", m_plugin.PluginMagicWord, gameTitle), sizeof(id) - 1);
|
|
|
|
}
|
2019-03-04 21:29:46 +01:00
|
|
|
else
|
2019-05-28 23:34:32 +02:00
|
|
|
strncpy(id, fmt("%s/%s", m_plugin.PluginMagicWord, GameHdr->path), sizeof(id) - 1);
|
2019-03-04 21:29:46 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
strcpy(id, GameHdr->id);
|
|
|
|
}
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
_setBg(m_gameSettingsBg, m_gameSettingsBg);
|
|
|
|
for(i = 0; i < ARRAY_SIZE(m_gameSettingsLblUser); ++i)
|
|
|
|
if(m_gameSettingsLblUser[i] != -1)
|
|
|
|
m_btnMgr.show(m_gameSettingsLblUser[i]);
|
|
|
|
|
|
|
|
wstringEx title(_t("cfgg1", L"Settings"));
|
2019-02-11 21:55:44 +01:00
|
|
|
if(!NoGameID(GameHdr->type))
|
2018-07-09 16:53:35 +02:00
|
|
|
title.append(wfmt(L" [%.6s]", id));
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblTitle, title);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblTitle);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnBack);
|
|
|
|
|
2019-02-11 21:55:44 +01:00
|
|
|
if(GameHdr->type == TYPE_PLUGIN || GameHdr->type == TYPE_HOMEBREW)
|
2016-12-14 19:47:13 +01:00
|
|
|
{
|
2019-03-04 21:29:46 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsBtnAdultOnly);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblAdultOnly);
|
|
|
|
if(GameHdr->type == TYPE_PLUGIN)
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnAdultOnly, m_gcfg1.getBool("ADULTONLY_PLUGINS", id, false) ? _t("yes", L"Yes") : _t("no", L"No"));
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnAdultOnly, m_gcfg1.getBool("ADULTONLY", id, false) ? _t("yes", L"Yes") : _t("no", L"No"));
|
2016-12-14 19:47:13 +01:00
|
|
|
return;
|
|
|
|
}
|
2019-02-11 21:55:44 +01:00
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
|
|
|
{
|
|
|
|
GCLoader = min(m_gcfg2.getUInt(id, "gc_loader", 0), ARRAY_SIZE(CMenu::_GCLoader) - 1u);
|
|
|
|
GCLoader = (GCLoader == 0) ? min(m_cfg.getUInt(GC_DOMAIN, "default_loader", 1), ARRAY_SIZE(CMenu::_GlobalGCLoaders) - 1u) : GCLoader-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_gameSettingsMaxPgs = 5;
|
2019-11-01 01:00:58 +01:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
|
|
|
{
|
|
|
|
if(GCLoader == DEVOLUTION)
|
|
|
|
m_gameSettingsMaxPgs = 2;
|
|
|
|
else
|
|
|
|
m_gameSettingsMaxPgs = 6;
|
|
|
|
}
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblPage, wfmt(L"%i / %i", m_gameSettingsPage, m_gameSettingsMaxPgs));
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPage);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPageM);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPageP);
|
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
if(m_gameSettingsPage == 1)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-03-04 21:29:46 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsBtnAdultOnly);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblAdultOnly);
|
2016-04-02 18:58:12 +02:00
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
2012-06-16 19:03:23 +02:00
|
|
|
{
|
2012-07-22 20:39:34 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblGCLoader);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblGCLoader_Val);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnGCLoader_P);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnGCLoader_M);
|
2012-06-16 19:03:23 +02:00
|
|
|
}
|
|
|
|
else
|
2012-01-22 01:10:20 +01:00
|
|
|
{
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblGameIOS);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblIOS);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnIOSP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnIOSM);
|
2012-01-22 01:10:20 +01:00
|
|
|
}
|
2016-04-02 18:58:12 +02:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblGameLanguage);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblLanguage);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLanguageP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLanguageM);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblGameVideo);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblVideo);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnVideoP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnVideoM);
|
2012-01-25 01:11:28 +01:00
|
|
|
}
|
2016-04-02 18:58:12 +02:00
|
|
|
if(m_gameSettingsPage == 2)
|
2012-01-25 01:11:28 +01:00
|
|
|
{
|
2016-11-07 16:06:00 +01:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME && GCLoader == DEVOLUTION)
|
|
|
|
{
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblLED);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLED);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblDevoMemcardEmu);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnDevoMemcardEmu);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblWidescreen);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnWidescreen);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblManage);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnManage);
|
2016-11-07 16:06:00 +01:00
|
|
|
}
|
|
|
|
else
|
2012-06-16 19:03:23 +02:00
|
|
|
{
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblDebugger);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblDebuggerV);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnDebuggerP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnDebuggerM);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
if(GameHdr->type != TYPE_GC_GAME)
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameSettingsLblHooktype);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblHooktypeVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnHooktypeM);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnHooktypeP);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblDeflicker);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnDeflicker);
|
2016-04-02 18:58:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblOcarina);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnOcarina);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblCheat);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnCheat);
|
2012-03-10 20:02:59 +01:00
|
|
|
}
|
2012-01-25 01:11:28 +01:00
|
|
|
}
|
2013-01-19 21:48:07 +01:00
|
|
|
if(m_gameSettingsPage == 3)
|
2012-01-25 01:11:28 +01:00
|
|
|
{
|
2016-04-02 18:58:12 +02:00
|
|
|
if(GameHdr->type != TYPE_GC_GAME)
|
2012-03-12 17:14:56 +01:00
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPatchVidModes);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPatchVidModesVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPatchVidModesM);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPatchVidModesP);
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2012-03-12 17:14:56 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblVipatch);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnVipatch);
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-03-12 17:14:56 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblCountryPatch);
|
2012-06-16 19:03:23 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsBtnCountryPatch);
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblAspectRatio);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblAspectRatioVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnAspectRatioP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnAspectRatioM);
|
2012-03-12 17:14:56 +01:00
|
|
|
}
|
2016-12-14 19:47:13 +01:00
|
|
|
else
|
2012-03-12 17:14:56 +01:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblWiiuWidescreen);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnWiiuWidescreen);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblEmuMemCard);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblEmuMemCard_Val);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnEmuMemCard_P);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnEmuMemCard_M);
|
2012-07-13 22:00:54 +02:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblWidescreen);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnWidescreen);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblManage);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnManage);
|
2012-03-12 17:14:56 +01:00
|
|
|
}
|
2012-01-25 01:11:28 +01:00
|
|
|
}
|
2013-01-19 21:48:07 +01:00
|
|
|
if(m_gameSettingsPage == 4)
|
2012-01-25 01:11:28 +01:00
|
|
|
{
|
2016-11-07 16:06:00 +01:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
|
|
|
{
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblCC_Rumble);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnCC_Rumble);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblNATIVE_CTL);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnNATIVE_CTL);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsBtnArcade);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblArcade);
|
2017-03-17 01:02:21 +01:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnSkip_IPL);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblSkip_IPL);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
}
|
|
|
|
else
|
2012-05-11 01:38:34 +02:00
|
|
|
{
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblManage);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnManage);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
if(GameHdr->type == TYPE_CHANNEL || GameHdr->type == TYPE_EMUCHANNEL)
|
2012-09-10 22:23:30 +02:00
|
|
|
{
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblCustom);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnCustom);
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblApploader);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnApploader);
|
|
|
|
|
2012-09-10 22:23:30 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblLaunchNK);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLaunchNK);
|
|
|
|
}
|
2016-11-07 16:06:00 +01:00
|
|
|
else if(GameHdr->type == TYPE_WII_GAME)
|
2012-06-16 19:03:23 +02:00
|
|
|
{
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.show(m_gameSettingsLblEmulationVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblEmulation);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnEmulationP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnEmulationM);
|
|
|
|
|
2012-06-16 19:03:23 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblExtractSave);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnExtractSave);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblFlashSave);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnFlashSave);
|
2012-06-16 19:03:23 +02:00
|
|
|
}
|
2012-05-11 01:38:34 +02:00
|
|
|
}
|
|
|
|
}
|
2013-01-20 12:34:21 +01:00
|
|
|
if(m_gameSettingsPage == 5)
|
2012-05-11 01:38:34 +02:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameSettingsLblLED);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLED);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblWidthVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblWidth);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnWidthP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnWidthM);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPosVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPos);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPosP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPosM);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPatch50);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPatch50);
|
|
|
|
}
|
|
|
|
else
|
2016-12-14 19:47:13 +01:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblLED);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnLED);
|
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_WII_GAME)
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameSettingsLblPrivateServer);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnPrivateServer);
|
2019-11-01 01:00:58 +01:00
|
|
|
|
2019-09-23 16:20:22 +02:00
|
|
|
m_btnMgr.show(m_gameSettingsLblFix480p);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnFix480p);
|
2017-04-18 01:23:50 +02:00
|
|
|
}
|
2016-12-14 19:47:13 +01:00
|
|
|
}
|
|
|
|
}
|
2019-11-01 01:00:58 +01:00
|
|
|
if(m_gameSettingsPage == 6)
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameSettingsLblBBA);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnBBA);
|
|
|
|
|
|
|
|
m_btnMgr.show(m_gameSettingsLblNetProfVal);
|
|
|
|
m_btnMgr.show(m_gameSettingsLblNetProf);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnNetProfP);
|
|
|
|
m_btnMgr.show(m_gameSettingsBtnNetProfM);
|
|
|
|
}
|
2012-01-22 01:10:20 +01:00
|
|
|
|
2019-03-04 21:29:46 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnAdultOnly, m_gcfg1.getBool("ADULTONLY", id, false) ? _t("yes", L"Yes") : _t("no", L"No"));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnOcarina, _optBoolToString(m_gcfg2.getOptBool(id, "cheat", 0)));
|
2013-01-20 12:34:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnLED, _optBoolToString(m_gcfg2.getOptBool(id, "led", 0)));
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "debugger", 0), ARRAY_SIZE(CMenu::_debugger) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblDebuggerV, _t(CMenu::_debugger[i].id, CMenu::_debugger[i].text));
|
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
2012-06-16 19:03:23 +02:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
//widescreen is shared by devo and nintendont
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnWidescreen, _optBoolToString(m_gcfg2.getOptBool(id, "widescreen", 0)));
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnWiiuWidescreen, _optBoolToString(m_gcfg2.getOptBool(id, "wiiu_widescreen", 0)));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnDevoMemcardEmu, _optBoolToString(m_gcfg2.getOptBool(id, "devo_memcard_emu", 2)));
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnCC_Rumble, _optBoolToString(m_gcfg2.getOptBool(id, "cc_rumble", 2)));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnNATIVE_CTL, _optBoolToString(m_gcfg2.getOptBool(id, "native_ctl", 2)));
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnDeflicker, _optBoolToString(m_gcfg2.getOptBool(id, "deflicker", 0)));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnArcade, _optBoolToString(m_gcfg2.getOptBool(id, "triforce_arcade", 0)));
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnSkip_IPL, _optBoolToString(m_gcfg2.getOptBool(id, "skip_ipl", 0)));
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnPatch50, _optBoolToString(m_gcfg2.getOptBool(id, "patch_pal50", 0)));
|
2019-11-01 01:00:58 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnBBA, _optBoolToString(m_gcfg2.getOptBool(id, "bba_emu", 0)));
|
|
|
|
|
|
|
|
u8 netprofile = m_gcfg2.getUInt(id, "net_profile", 0);
|
|
|
|
if(netprofile == 0)
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblNetProfVal, _t("GC_Auto", L"Auto"));
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblNetProfVal, wfmt(L"%i", netprofile));
|
2017-04-18 01:23:50 +02:00
|
|
|
|
|
|
|
if(videoScale == 0)
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblWidthVal, _t("GC_Auto", L"Auto"));
|
|
|
|
else if(videoScale == 127)
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblWidthVal, _t("def", L"Default"));
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblWidthVal, wfmt(L"%i", max(40, min(120, videoScale)) + 600));
|
|
|
|
|
|
|
|
if(videoOffset == 127)
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblPosVal, _t("def", L"Default"));
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblPosVal, wfmt(L"%i", max(-20, min(20, videoOffset))));
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "video_mode", 0), ARRAY_SIZE(CMenu::_GCvideoModes) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblVideo, _t(CMenu::_GCvideoModes[i].id, CMenu::_GCvideoModes[i].text));
|
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "language", 0), ARRAY_SIZE(CMenu::_GClanguages) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblLanguage, _t(CMenu::_GClanguages[i].id, CMenu::_GClanguages[i].text));
|
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "emu_memcard", 0), ARRAY_SIZE(CMenu::_NinEmuCard) - 1u);
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblEmuMemCard_Val, _t(CMenu::_NinEmuCard[i].id, CMenu::_NinEmuCard[i].text));
|
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "gc_loader", 0), ARRAY_SIZE(CMenu::_GCLoader) - 1u);
|
2012-07-15 00:44:57 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblGCLoader_Val, _t(CMenu::_GCLoader[i].id, CMenu::_GCLoader[i].text));
|
2012-06-16 19:03:23 +02:00
|
|
|
}
|
|
|
|
else
|
2012-03-17 17:52:17 +01:00
|
|
|
{
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnVipatch, _optBoolToString(m_gcfg2.getOptBool(id, "vipatch", 0)));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnCountryPatch, _optBoolToString(m_gcfg2.getOptBool(id, "country_patch", 0)));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnPrivateServer, _optBoolToString(m_gcfg2.getOptBool(id, "private_server", 0)));
|
2019-09-23 16:20:22 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnFix480p, _optBoolToString(m_gcfg2.getOptBool(id, "fix480p", 2)));
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnCustom, _optBoolToString(m_gcfg2.getOptBool(id, "custom", 0)));
|
2016-12-01 01:05:39 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnLaunchNK, _optBoolToString(m_gcfg2.getOptBool(id, "useneek", 0)));
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsBtnApploader, _optBoolToString(m_gcfg2.getOptBool(id, "apploader", 0)));
|
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "video_mode", 0), ARRAY_SIZE(CMenu::_VideoModes) - 1u);
|
2012-06-28 15:05:31 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblVideo, _t(CMenu::_VideoModes[i].id, CMenu::_VideoModes[i].text));
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "language", 0), ARRAY_SIZE(CMenu::_languages) - 1u);
|
2012-03-17 17:52:17 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblLanguage, _t(CMenu::_languages[i].id, CMenu::_languages[i].text));
|
2016-04-02 18:58:12 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "aspect_ratio", 0), ARRAY_SIZE(CMenu::_AspectRatio) - 1u);
|
2012-03-17 17:52:17 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblAspectRatioVal, _t(CMenu::_AspectRatio[i].id, CMenu::_AspectRatio[i].text));
|
2012-01-21 22:15:45 +01:00
|
|
|
|
2020-05-17 00:53:34 +02:00
|
|
|
// this getInt() is different than the normal getInt()
|
|
|
|
// this getInt() will actually set the j variable to the value of the key. hence the & before j.
|
|
|
|
// this appears to be the only time this getInt() is called of all wiiflow code.
|
|
|
|
// why they didn't just set int j = m_gcfg2.getInt(id, "ios", 0); i do not know.
|
2016-04-02 18:58:12 +02:00
|
|
|
int j = 0;
|
2020-05-17 00:53:34 +02:00
|
|
|
if(m_gcfg2.getInt(id, "ios", &j) && _installed_cios.size() > 0)
|
2016-04-02 18:58:12 +02:00
|
|
|
{
|
|
|
|
CIOSItr itr = _installed_cios.find(j);
|
|
|
|
j = (itr == _installed_cios.end()) ? 0 : itr->first;
|
|
|
|
}
|
2020-05-17 00:53:34 +02:00
|
|
|
else j = 0;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
if(j > 0)
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblIOS, wfmt(L"%i", j));
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblIOS, L"AUTO");
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "patch_video_modes", 0), ARRAY_SIZE(CMenu::_vidModePatch) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblPatchVidModesVal, _t(CMenu::_vidModePatch[i].id, CMenu::_vidModePatch[i].text));
|
2013-05-21 14:43:14 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "hooktype", 0), ARRAY_SIZE(CMenu::_hooktype) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblHooktypeVal, _t(CMenu::_hooktype[i].id, CMenu::_hooktype[i].text));
|
2013-05-21 14:43:14 +02:00
|
|
|
|
2018-05-08 15:49:43 +02:00
|
|
|
i = min(m_gcfg2.getUInt(id, "emulate_save", 0), ARRAY_SIZE(CMenu::_SaveEmu) - 1u);
|
2016-04-02 18:58:12 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblEmulationVal, _t(CMenu::_SaveEmu[i].id, CMenu::_SaveEmu[i].text));
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
void CMenu::_gameSettings(const dir_discHdr *hdr, bool disc)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-05-14 07:37:10 +02:00
|
|
|
m_gcfg2.load(fmt("%s/" GAME_SETTINGS2_FILENAME, m_settingsDir.c_str()));
|
2019-05-28 23:34:32 +02:00
|
|
|
GameHdr = hdr;// set for global use in other fuctions
|
2019-03-04 21:29:46 +01:00
|
|
|
char id[74];
|
|
|
|
memset(id, 0, 74);
|
|
|
|
|
|
|
|
if(GameHdr->type == TYPE_HOMEBREW)
|
|
|
|
wcstombs(id, GameHdr->title, 63);
|
|
|
|
else if(GameHdr->type == TYPE_PLUGIN)
|
|
|
|
{
|
|
|
|
strncpy(m_plugin.PluginMagicWord, fmt("%08x", GameHdr->settings[0]), 8);
|
|
|
|
if(strrchr(GameHdr->path, '/') != NULL)
|
2019-05-28 23:34:32 +02:00
|
|
|
{
|
|
|
|
char gameTitle[64];
|
|
|
|
gameTitle[63] = '\0';
|
|
|
|
wcstombs(gameTitle, GameHdr->title, 63);
|
|
|
|
strncpy(id, fmt("%s/%s", m_plugin.PluginMagicWord, gameTitle), sizeof(id) - 1);
|
|
|
|
}
|
2019-03-04 21:29:46 +01:00
|
|
|
else
|
2019-05-28 23:34:32 +02:00
|
|
|
strncpy(id, fmt("%s/%s", m_plugin.PluginMagicWord, GameHdr->path), sizeof(id) - 1);
|
2019-03-04 21:29:46 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
strcpy(id, GameHdr->id);
|
|
|
|
}
|
|
|
|
|
2017-05-15 19:50:24 +02:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
|
|
|
{
|
|
|
|
videoScale = m_gcfg2.getInt(id, "nin_width", 127);
|
|
|
|
videoOffset = m_gcfg2.getInt(id, "nin_pos", 127);
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
m_gameSettingsPage = 1;
|
|
|
|
_showGameSettings();
|
2012-09-09 20:35:15 +02:00
|
|
|
while(!m_exit)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
_mainLoopCommon();
|
2012-09-09 20:35:15 +02:00
|
|
|
if(BTN_HOME_PRESSED || BTN_B_PRESSED)
|
2012-01-21 21:57:41 +01:00
|
|
|
break;
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(BTN_UP_PRESSED)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.up();
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(BTN_DOWN_PRESSED)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.down();
|
2016-11-07 16:06:00 +01:00
|
|
|
if(BTN_MINUS_PRESSED || BTN_LEFT_PRESSED || (BTN_A_PRESSED && m_btnMgr.selected(m_gameSettingsBtnPageM)))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2016-04-02 18:58:12 +02:00
|
|
|
_hideGameSettingsPg();
|
|
|
|
if(m_gameSettingsPage == 1)
|
|
|
|
m_gameSettingsPage = m_gameSettingsMaxPgs;
|
2012-03-26 16:29:57 +02:00
|
|
|
else --m_gameSettingsPage;
|
2016-04-02 18:58:12 +02:00
|
|
|
if(BTN_LEFT_PRESSED || BTN_MINUS_PRESSED)
|
|
|
|
m_btnMgr.click(m_gameSettingsBtnPageM);
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-11-07 16:06:00 +01:00
|
|
|
else if(BTN_PLUS_PRESSED || BTN_RIGHT_PRESSED || (BTN_A_PRESSED && m_btnMgr.selected(m_gameSettingsBtnPageP)))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2016-04-02 18:58:12 +02:00
|
|
|
_hideGameSettingsPg();
|
|
|
|
if(m_gameSettingsPage == m_gameSettingsMaxPgs)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_gameSettingsPage = 1;
|
2012-09-09 20:35:15 +02:00
|
|
|
else
|
|
|
|
++m_gameSettingsPage;
|
|
|
|
if(BTN_RIGHT_PRESSED || BTN_PLUS_PRESSED)
|
|
|
|
m_btnMgr.click(m_gameSettingsBtnPageP);
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(BTN_A_PRESSED)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-09-09 20:35:15 +02:00
|
|
|
if(m_btnMgr.selected(m_gameSettingsBtnBack))
|
2012-01-21 21:57:41 +01:00
|
|
|
break;
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnOcarina))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2016-12-01 01:05:39 +01:00
|
|
|
m_gcfg2.setBool(id, "cheat", !m_gcfg2.getBool(id, "cheat", 0));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnVipatch))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2013-01-05 18:12:13 +01:00
|
|
|
m_gcfg2.setBool(id, "vipatch", !m_gcfg2.getBool(id, "vipatch", 0));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnCountryPatch))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2013-01-05 18:12:13 +01:00
|
|
|
m_gcfg2.setBool(id, "country_patch", !m_gcfg2.getBool(id, "country_patch", 0));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnCustom))
|
2012-01-30 06:25:56 +01:00
|
|
|
{
|
2013-01-05 18:12:13 +01:00
|
|
|
m_gcfg2.setBool(id, "custom", !m_gcfg2.getBool(id, "custom", 0));
|
2012-01-30 06:25:56 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnLaunchNK))
|
2012-07-22 20:02:56 +02:00
|
|
|
{
|
2017-05-15 19:50:24 +02:00
|
|
|
m_gcfg2.setBool(id, "useneek", !m_gcfg2.getBool(id, "useneek", 0));
|
2016-12-01 01:05:39 +01:00
|
|
|
_showGameSettings();
|
2012-07-22 20:02:56 +02:00
|
|
|
}
|
2012-07-13 22:00:54 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnDevoMemcardEmu))
|
|
|
|
{
|
2016-12-01 01:05:39 +01:00
|
|
|
m_gcfg2.setOptBool(id, "devo_memcard_emu", loopNum(m_gcfg2.getOptBool(id, "devo_memcard_emu") + 1, 3));
|
2012-07-13 22:00:54 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-04-02 18:58:12 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnWidescreen))
|
2012-07-22 20:39:34 +02:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
m_gcfg2.setBool(id, "widescreen", !m_gcfg2.getBool(id, "widescreen", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnWiiuWidescreen))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "wiiu_widescreen", !m_gcfg2.getBool(id, "wiiu_widescreen", 0));
|
2012-07-22 20:39:34 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnLanguageP) || m_btnMgr.selected(m_gameSettingsBtnLanguageM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnLanguageP) ? 1 : -1;
|
2016-04-02 18:58:12 +02:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "language", (int)loopNum(m_gcfg2.getUInt(id, "language", 0) + direction, ARRAY_SIZE(CMenu::_GClanguages)));
|
2016-04-02 18:58:12 +02:00
|
|
|
else
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "language", (int)loopNum(m_gcfg2.getUInt(id, "language", 0) + direction, ARRAY_SIZE(CMenu::_languages)));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnVideoP) || m_btnMgr.selected(m_gameSettingsBtnVideoM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnVideoP) ? 1 : -1;
|
2016-04-02 18:58:12 +02:00
|
|
|
if(GameHdr->type == TYPE_GC_GAME)
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "video_mode", (int)loopNum(m_gcfg2.getUInt(id, "video_mode", 0) + direction, ARRAY_SIZE(CMenu::_GCvideoModes)));
|
2016-04-02 18:58:12 +02:00
|
|
|
else
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "video_mode", (int)loopNum(m_gcfg2.getUInt(id, "video_mode", 0) + direction, ARRAY_SIZE(CMenu::_VideoModes)));
|
2012-02-02 23:22:46 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnAspectRatioP) || m_btnMgr.selected(m_gameSettingsBtnAspectRatioM))
|
2012-01-27 14:59:36 +01:00
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnAspectRatioP) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "aspect_ratio", (int)loopNum(m_gcfg2.getUInt(id, "aspect_ratio", 0) + direction, ARRAY_SIZE(CMenu::_AspectRatio)));
|
2012-01-27 14:59:36 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2017-04-18 01:23:50 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnWidthP) || m_btnMgr.selected(m_gameSettingsBtnWidthM))
|
|
|
|
{
|
|
|
|
if(m_btnMgr.selected(m_gameSettingsBtnWidthP))
|
|
|
|
{
|
|
|
|
if(videoScale == 0)
|
|
|
|
videoScale = 40;
|
|
|
|
else if(videoScale == 127)
|
|
|
|
videoScale = 0;
|
|
|
|
else if(videoScale < 120)
|
|
|
|
videoScale += 2;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(videoScale == 40)
|
|
|
|
videoScale = 0;
|
|
|
|
else if(videoScale == 0)
|
|
|
|
videoScale = 127;
|
|
|
|
else if(videoScale > 40 && videoScale != 127)
|
|
|
|
videoScale -= 2;
|
|
|
|
}
|
|
|
|
m_gcfg2.setInt(id, "nin_width", videoScale);
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnPosP) || m_btnMgr.selected(m_gameSettingsBtnPosM))
|
|
|
|
{
|
|
|
|
if(m_btnMgr.selected(m_gameSettingsBtnPosP))
|
|
|
|
{
|
|
|
|
if(videoOffset == 127)
|
|
|
|
videoOffset = -20;
|
|
|
|
else if(videoOffset < 20)
|
|
|
|
videoOffset++;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(videoOffset == -20)
|
|
|
|
videoOffset = 127;
|
|
|
|
else if(videoOffset > -20 && videoOffset != 127)
|
|
|
|
videoOffset--;
|
|
|
|
}
|
|
|
|
m_gcfg2.setInt(id, "nin_pos", videoOffset);
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-04-02 18:58:12 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnEmuMemCard_P) || m_btnMgr.selected(m_gameSettingsBtnEmuMemCard_M))
|
2012-03-12 17:14:56 +01:00
|
|
|
{
|
2016-04-02 18:58:12 +02:00
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnEmuMemCard_P) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "emu_memcard", (int)loopNum(m_gcfg2.getUInt(id, "emu_memcard", 2) + direction, ARRAY_SIZE(CMenu::_NinEmuCard)));
|
2012-03-17 17:52:17 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-07-15 00:44:57 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnGCLoader_P) || m_btnMgr.selected(m_gameSettingsBtnGCLoader_M))
|
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnGCLoader_P) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "gc_loader", (int)loopNum(m_gcfg2.getUInt(id, "gc_loader", 0) + direction, ARRAY_SIZE(CMenu::_GCLoader)));
|
2012-07-15 00:44:57 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-09-09 20:35:15 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnIOSM) || m_btnMgr.selected(m_gameSettingsBtnIOSP))
|
2012-01-21 22:15:45 +01:00
|
|
|
{
|
2013-01-05 18:12:13 +01:00
|
|
|
if(_installed_cios.size() > 0)
|
2012-01-21 22:15:45 +01:00
|
|
|
{
|
|
|
|
bool direction = m_btnMgr.selected(m_gameSettingsBtnIOSP);
|
|
|
|
CIOSItr itr = _installed_cios.find((u32)m_gcfg2.getInt(id, "ios", 0));
|
2013-01-05 18:12:13 +01:00
|
|
|
if(direction && itr == _installed_cios.end())
|
2012-01-21 22:15:45 +01:00
|
|
|
itr = _installed_cios.begin();
|
|
|
|
else if(!direction && itr == _installed_cios.begin())
|
|
|
|
itr = _installed_cios.end();
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(direction)
|
2012-01-21 22:15:45 +01:00
|
|
|
itr++;
|
|
|
|
|
|
|
|
if(!direction)
|
|
|
|
itr--;
|
|
|
|
|
|
|
|
if(itr->first != 0)
|
|
|
|
m_gcfg2.setInt(id, "ios", itr->first);
|
|
|
|
else
|
|
|
|
m_gcfg2.remove(id, "ios");
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnPatchVidModesP) || m_btnMgr.selected(m_gameSettingsBtnPatchVidModesM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnPatchVidModesP) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "patch_video_modes", (int)loopNum(m_gcfg2.getUInt(id, "patch_video_modes", 0) + direction, ARRAY_SIZE(CMenu::_vidModePatch)));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-06-27 19:14:11 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnManage))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
if(disc)
|
|
|
|
error(_t("cfgg57", L"Not allowed for disc!"));
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CoverFlow.stopCoverLoader(true);
|
|
|
|
_hideGameSettings();
|
|
|
|
_CoverBanner();
|
|
|
|
CoverFlow.startCoverLoader();
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnCheat))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
_hideGameSettings();
|
|
|
|
_CheatSettings();
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnHooktypeP) || m_btnMgr.selected(m_gameSettingsBtnHooktypeM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnHooktypeP) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "hooktype", (int)loopNum(m_gcfg2.getUInt(id, "hooktype", 1) + direction, ARRAY_SIZE(CMenu::_hooktype)));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnEmulationP) || m_btnMgr.selected(m_gameSettingsBtnEmulationM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-01-23 22:15:14 +01:00
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnEmulationP) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "emulate_save", (int)loopNum(m_gcfg2.getUInt(id, "emulate_save", 0) + direction, ARRAY_SIZE(CMenu::_SaveEmu)));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnDebuggerP) || m_btnMgr.selected(m_gameSettingsBtnDebuggerM))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2013-05-21 14:43:14 +02:00
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnDebuggerP) ? 1 : -1;
|
2018-05-08 15:49:43 +02:00
|
|
|
m_gcfg2.setInt(id, "debugger", (int)loopNum(m_gcfg2.getUInt(id, "debugger", 0) + direction, ARRAY_SIZE(CMenu::_debugger)));
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnApploader))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "apploader", !m_gcfg2.getBool(id, "apploader", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-19 21:48:07 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnLED))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "led", !m_gcfg2.getBool(id, "led", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-04-02 17:46:06 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnNATIVE_CTL))
|
|
|
|
{
|
2016-12-01 01:05:39 +01:00
|
|
|
m_gcfg2.setOptBool(id, "native_ctl", loopNum(m_gcfg2.getOptBool(id, "native_ctl") + 1, 3));
|
2016-04-02 17:46:06 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnDeflicker))
|
|
|
|
{
|
2017-03-17 01:02:21 +01:00
|
|
|
m_gcfg2.setBool(id, "deflicker", !m_gcfg2.getBool(id, "deflicker", 0));
|
2016-04-02 17:46:06 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2017-03-17 01:02:21 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnCC_Rumble))
|
2016-04-02 17:46:06 +02:00
|
|
|
{
|
2017-03-17 01:02:21 +01:00
|
|
|
m_gcfg2.setOptBool(id, "cc_rumble", loopNum(m_gcfg2.getOptBool(id, "cc_rumble") + 1, 3));
|
2016-04-02 17:46:06 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-11-07 16:06:00 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnArcade))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "triforce_arcade", !m_gcfg2.getBool(id, "triforce_arcade", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2017-03-17 01:02:21 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnSkip_IPL))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "skip_ipl", !m_gcfg2.getBool(id, "skip_ipl", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2017-04-18 01:23:50 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnPatch50))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "patch_pal50", !m_gcfg2.getBool(id, "patch_pal50", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2019-11-01 01:00:58 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnBBA))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "bba_emu", !m_gcfg2.getBool(id, "bba_emu", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnNetProfP) || m_btnMgr.selected(m_gameSettingsBtnNetProfM))
|
|
|
|
{
|
|
|
|
s8 direction = m_btnMgr.selected(m_gameSettingsBtnNetProfP) ? 1 : -1;
|
|
|
|
m_gcfg2.setInt(id, "net_profile", loopNum(m_gcfg2.getInt(id, "net_profile") + direction, 4));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2016-04-02 17:46:06 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnPrivateServer))
|
|
|
|
{
|
|
|
|
m_gcfg2.setBool(id, "private_server", !m_gcfg2.getBool(id, "private_server", 0));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2019-09-23 16:20:22 +02:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnFix480p))
|
|
|
|
{
|
|
|
|
m_gcfg2.setOptBool(id, "fix480p", loopNum(m_gcfg2.getOptBool(id, "fix480p") + 1, 3));
|
|
|
|
_showGameSettings();
|
|
|
|
}
|
2019-03-04 21:29:46 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnAdultOnly))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2017-04-18 01:23:50 +02:00
|
|
|
if(disc)
|
|
|
|
error(_t("cfgg57", L"Not allowed for disc!"));
|
|
|
|
else
|
|
|
|
{
|
2019-03-04 21:29:46 +01:00
|
|
|
if(GameHdr->type == TYPE_PLUGIN)
|
|
|
|
m_gcfg1.setBool("ADULTONLY_PLUGINS", id, !m_gcfg1.getBool("ADULTONLY_PLUGINS", id, false));
|
|
|
|
else
|
|
|
|
m_gcfg1.setBool("ADULTONLY", id, !m_gcfg1.getBool("ADULTONLY", id, false));
|
2017-04-18 01:23:50 +02:00
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnExtractSave))
|
2012-05-11 01:38:34 +02:00
|
|
|
{
|
|
|
|
_hideGameSettings();
|
|
|
|
m_forceext = true;
|
2016-11-07 16:06:00 +01:00
|
|
|
if(!_AutoExtractSave(id))
|
|
|
|
error(_t("cfgg50", L"No save to extract!"));
|
2012-05-11 01:38:34 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2013-01-05 18:12:13 +01:00
|
|
|
else if(m_btnMgr.selected(m_gameSettingsBtnFlashSave))
|
2012-05-11 01:38:34 +02:00
|
|
|
{
|
|
|
|
_hideGameSettings();
|
|
|
|
m_forceext = true;
|
2016-11-07 16:06:00 +01:00
|
|
|
if(!_FlashSave(id))
|
|
|
|
error(_t("cfgg51", L"No save to flash to real NAND!"));
|
2012-05-11 01:38:34 +02:00
|
|
|
_showGameSettings();
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
}
|
2017-04-18 01:23:50 +02:00
|
|
|
if(!disc)
|
2019-04-08 18:10:30 +02:00
|
|
|
m_gcfg2.save(true);// do not save changes for disc games
|
2012-01-21 21:57:41 +01:00
|
|
|
_hideGameSettings();
|
|
|
|
}
|
|
|
|
|
2012-11-03 20:16:03 +01:00
|
|
|
void CMenu::_initGameSettingsMenu()
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-11-03 20:16:03 +01:00
|
|
|
_addUserLabels(m_gameSettingsLblUser, ARRAY_SIZE(m_gameSettingsLblUser), "GAME_SETTINGS");
|
|
|
|
m_gameSettingsBg = _texture("GAME_SETTINGS/BG", "texture", theme.bg, false);
|
2018-12-28 01:47:00 +01:00
|
|
|
m_gameSettingsLblTitle = _addLabel("GAME_SETTINGS/TITLE", theme.titleFont, L"", 0, 10, 640, 60, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
|
|
|
// Page 1
|
2019-03-04 21:29:46 +01:00
|
|
|
m_gameSettingsLblAdultOnly = _addLabel("GAME_SETTINGS/ADULT_ONLY", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnAdultOnly = _addButton("GAME_SETTINGS/ADULT_ONLY_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblGameIOS = _addLabel("GAME_SETTINGS/IOS", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblIOS = _addLabel("GAME_SETTINGS/IOS_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnIOSM = _addPicButton("GAME_SETTINGS/IOS_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnIOSP = _addPicButton("GAME_SETTINGS/IOS_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblGameLanguage = _addLabel("GAME_SETTINGS/GAME_LANG", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblLanguage = _addLabel("GAME_SETTINGS/GAME_LANG_BTN", theme.btnFont, L"", 468, 250, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnLanguageM = _addPicButton("GAME_SETTINGS/GAME_LANG_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 250, 48, 48);
|
|
|
|
m_gameSettingsBtnLanguageP = _addPicButton("GAME_SETTINGS/GAME_LANG_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 250, 48, 48);
|
2012-11-03 20:16:03 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblGameVideo = _addLabel("GAME_SETTINGS/VIDEO", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblVideo = _addLabel("GAME_SETTINGS/VIDEO_BTN", theme.btnFont, L"", 468, 310, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnVideoM = _addPicButton("GAME_SETTINGS/VIDEO_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 310, 48, 48);
|
|
|
|
m_gameSettingsBtnVideoP = _addPicButton("GAME_SETTINGS/VIDEO_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 310, 48, 48);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
//GC Page 1 line 2
|
|
|
|
m_gameSettingsLblGCLoader = _addLabel("GAME_SETTINGS/GC_LOADER", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblGCLoader_Val = _addLabel("GAME_SETTINGS/GC_LOADER_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnGCLoader_M = _addPicButton("GAME_SETTINGS/GC_LOADER_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnGCLoader_P = _addPicButton("GAME_SETTINGS/GC_LOADER_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
2012-02-02 23:22:46 +01:00
|
|
|
|
2013-01-05 18:12:13 +01:00
|
|
|
// Page 2
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblDebugger = _addLabel("GAME_SETTINGS/GAME_DEBUGGER", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblDebuggerV = _addLabel("GAME_SETTINGS/GAME_DEBUGGER_BTN", theme.btnFont, L"", 468, 130, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnDebuggerM = _addPicButton("GAME_SETTINGS/GAME_DEBUGGER_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 130, 48, 48);
|
|
|
|
m_gameSettingsBtnDebuggerP = _addPicButton("GAME_SETTINGS/GAME_DEBUGGER_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 130, 48, 48);
|
2012-03-17 17:52:17 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblHooktype = _addLabel("GAME_SETTINGS/HOOKTYPE", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblHooktypeVal = _addLabel("GAME_SETTINGS/HOOKTYPE_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnHooktypeM = _addPicButton("GAME_SETTINGS/HOOKTYPE_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnHooktypeP = _addPicButton("GAME_SETTINGS/HOOKTYPE_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
2012-03-17 17:52:17 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblOcarina = _addLabel("GAME_SETTINGS/OCARINA", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnOcarina = _addButton("GAME_SETTINGS/OCARINA_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
2012-03-17 17:52:17 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblCheat = _addLabel("GAME_SETTINGS/CHEAT", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnCheat = _addButton("GAME_SETTINGS/CHEAT_BTN", theme.btnFont, L"", 420, 310, 200, 48, theme.btnFontColor);
|
2012-07-22 20:39:34 +02:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
//GC Page 2
|
2016-04-03 02:31:02 +02:00
|
|
|
//nintendont = debugger, deflicker, ocarina, cheats
|
2016-12-14 19:47:13 +01:00
|
|
|
//devolution = led_activity(pg5), emu_memcard, widescreen(pg3), mng_cvr_bnr (pg4)
|
2016-04-02 18:58:12 +02:00
|
|
|
|
|
|
|
m_gameSettingsLblDeflicker = _addLabel("GAME_SETTINGS/DEFLICKER", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnDeflicker = _addButton("GAME_SETTINGS/DEFLICKER_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblDevoMemcardEmu = _addLabel("GAME_SETTINGS/DEVO_MEMCARD_EMU", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnDevoMemcardEmu = _addButton("GAME_SETTINGS/DEVO_MEMCARD_EMU_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
2016-04-02 18:58:12 +02:00
|
|
|
|
|
|
|
//Page 3
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblCountryPatch = _addLabel("GAME_SETTINGS/COUNTRY_PATCH", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnCountryPatch = _addButton("GAME_SETTINGS/COUNTRY_PATCH_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblVipatch = _addLabel("GAME_SETTINGS/VIPATCH", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnVipatch = _addButton("GAME_SETTINGS/VIPATCH_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblPatchVidModes = _addLabel("GAME_SETTINGS/PATCH_VIDEO_MODE", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblPatchVidModesVal = _addLabel("GAME_SETTINGS/PATCH_VIDEO_MODE_BTN", theme.btnFont, L"", 468, 250, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnPatchVidModesM = _addPicButton("GAME_SETTINGS/PATCH_VIDEO_MODE_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 250, 48, 48);
|
|
|
|
m_gameSettingsBtnPatchVidModesP = _addPicButton("GAME_SETTINGS/PATCH_VIDEO_MODE_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 250, 48, 48);
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblAspectRatio = _addLabel("GAME_SETTINGS/ASPECT_RATIO", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblAspectRatioVal = _addLabel("GAME_SETTINGS/ASPECT_RATIO_BTN", theme.btnFont, L"", 468, 310, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnAspectRatioM = _addPicButton("GAME_SETTINGS/ASPECT_RATIO_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 310, 48, 48);
|
|
|
|
m_gameSettingsBtnAspectRatioP = _addPicButton("GAME_SETTINGS/ASPECT_RATIO_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 310, 48, 48);
|
2012-07-15 00:44:57 +02:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
//GC Nintendont Page 3
|
2017-04-18 01:23:50 +02:00
|
|
|
//nintendont = wiiu widescreen, emu_memcard, widescreen, mng_cvr_bnr (pg4)
|
|
|
|
m_gameSettingsLblWiiuWidescreen = _addLabel("GAME_SETTINGS/WIIU_WIDESCREEN", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnWiiuWidescreen = _addButton("GAME_SETTINGS/WIIU_WIDESCREEN_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblEmuMemCard = _addLabel("GAME_SETTINGS/DML_NMM", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblEmuMemCard_Val = _addLabel("GAME_SETTINGS/DML_NMM_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnEmuMemCard_M = _addPicButton("GAME_SETTINGS/DML_NMM_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnEmuMemCard_P = _addPicButton("GAME_SETTINGS/DML_NMM_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
2012-07-13 22:00:54 +02:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblWidescreen = _addLabel("GAME_SETTINGS/WIDESCREEN", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnWidescreen = _addButton("GAME_SETTINGS/WIDESCREEN_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
2012-07-15 00:44:57 +02:00
|
|
|
|
2013-01-05 18:12:13 +01:00
|
|
|
//Page 4
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblEmulation = _addLabel("GAME_SETTINGS/EMU_SAVE", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblEmulationVal = _addLabel("GAME_SETTINGS/EMU_SAVE_BTN", theme.btnFont, L"", 468, 130, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnEmulationM = _addPicButton("GAME_SETTINGS/EMU_SAVE_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 130, 48, 48);
|
|
|
|
m_gameSettingsBtnEmulationP = _addPicButton("GAME_SETTINGS/EMU_SAVE_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 130, 48, 48);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblExtractSave = _addLabel("GAME_SETTINGS/EXTRACT_SAVE", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnExtractSave = _addButton("GAME_SETTINGS/EXTRACT_SAVE_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblFlashSave = _addLabel("GAME_SETTINGS/FLASH_SAVE", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnFlashSave = _addButton("GAME_SETTINGS/FLASH_SAVE_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
2012-05-11 01:38:34 +02:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblManage = _addLabel("GAME_SETTINGS/MANAGE", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnManage = _addButton("GAME_SETTINGS/MANAGE_BTN", theme.btnFont, L"", 420, 310, 200, 48, theme.btnFontColor);
|
2016-11-07 16:06:00 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
//Channels Page 4
|
2016-04-02 18:58:12 +02:00
|
|
|
m_gameSettingsLblCustom = _addLabel("GAME_SETTINGS/CUSTOM", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
2016-11-07 16:06:00 +01:00
|
|
|
m_gameSettingsBtnCustom = _addButton("GAME_SETTINGS/CUSTOM_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblApploader = _addLabel("GAME_SETTINGS/APPLDR", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnApploader = _addButton("GAME_SETTINGS/APPLDR_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
|
|
|
|
|
|
|
m_gameSettingsLblLaunchNK = _addLabel("GAME_SETTINGS/LAUNCHNEEK", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnLaunchNK = _addButton("GAME_SETTINGS/LAUNCHNEEK_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
|
|
|
|
|
|
|
//GC Nintendont Page 4
|
2017-03-17 01:02:21 +01:00
|
|
|
m_gameSettingsLblCC_Rumble = _addLabel("GAME_SETTINGS/CC_RUMBLE", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnCC_Rumble = _addButton("GAME_SETTINGS/CC_RUMBLE_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
2016-12-14 19:47:13 +01:00
|
|
|
|
|
|
|
m_gameSettingsLblNATIVE_CTL = _addLabel("GAME_SETTINGS/NATIVE_CTL", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnNATIVE_CTL = _addButton("GAME_SETTINGS/NATIVE_CTL_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
|
|
|
|
|
|
|
m_gameSettingsLblArcade = _addLabel("GAME_SETTINGS/ARCADE", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnArcade = _addButton("GAME_SETTINGS/ARCADE_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2017-03-17 01:02:21 +01:00
|
|
|
m_gameSettingsLblSkip_IPL = _addLabel("GAME_SETTINGS/SKIP_IPL", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnSkip_IPL = _addButton("GAME_SETTINGS/SKIP_IPL_BTN", theme.btnFont, L"", 420, 310, 200, 48, theme.btnFontColor);
|
|
|
|
|
2013-01-05 18:12:13 +01:00
|
|
|
//Page 5
|
2016-12-14 19:47:13 +01:00
|
|
|
m_gameSettingsLblLED = _addLabel("GAME_SETTINGS/LED", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnLED = _addButton("GAME_SETTINGS/LED_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-04-02 17:46:06 +02:00
|
|
|
m_gameSettingsLblPrivateServer = _addLabel("GAME_SETTINGS/PRIVATE_SERVER", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnPrivateServer = _addButton("GAME_SETTINGS/PRIVATE_SERVER_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor);
|
2019-09-23 16:20:22 +02:00
|
|
|
|
|
|
|
m_gameSettingsLblFix480p = _addLabel("GAME_SETTINGS/FIX480P", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnFix480p = _addButton("GAME_SETTINGS/FIX480P_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor);
|
2017-04-18 01:23:50 +02:00
|
|
|
//GC
|
|
|
|
m_gameSettingsLblWidth = _addLabel("GAME_SETTINGS/NIN_WIDTH", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblWidthVal = _addLabel("GAME_SETTINGS/NIN_WIDTH_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnWidthM = _addPicButton("GAME_SETTINGS/NIN_WIDTH_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnWidthP = _addPicButton("GAME_SETTINGS/NIN_WIDTH_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
|
|
|
|
|
|
|
m_gameSettingsLblPos = _addLabel("GAME_SETTINGS/NIN_POS", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblPosVal = _addLabel("GAME_SETTINGS/NIN_POS_BTN", theme.btnFont, L"", 468, 250, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnPosM = _addPicButton("GAME_SETTINGS/NIN_POS_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 250, 48, 48);
|
|
|
|
m_gameSettingsBtnPosP = _addPicButton("GAME_SETTINGS/NIN_POS_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 250, 48, 48);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
m_gameSettingsLblPatch50 = _addLabel("GAME_SETTINGS/PATCH_PAL50", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnPatch50 = _addButton("GAME_SETTINGS/PATCH_PAL50_BTN", theme.btnFont, L"", 420, 310, 200, 48, theme.btnFontColor);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2019-11-01 01:00:58 +01:00
|
|
|
//Page 6 GC only
|
|
|
|
m_gameSettingsLblBBA = _addLabel("GAME_SETTINGS/BBA", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsBtnBBA = _addButton("GAME_SETTINGS/BBA_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor);
|
|
|
|
|
|
|
|
m_gameSettingsLblNetProf = _addLabel("GAME_SETTINGS/NET_PROFILE", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE);
|
|
|
|
m_gameSettingsLblNetProfVal = _addLabel("GAME_SETTINGS/NET_PROFILE_BTN", theme.btnFont, L"", 468, 190, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnNetProfM = _addPicButton("GAME_SETTINGS/NET_PROFILE_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 420, 190, 48, 48);
|
|
|
|
m_gameSettingsBtnNetProfP = _addPicButton("GAME_SETTINGS/NET_PROFILE_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 572, 190, 48, 48);
|
|
|
|
|
2013-01-05 18:12:13 +01:00
|
|
|
//Footer
|
2013-11-04 20:46:23 +01:00
|
|
|
m_gameSettingsLblPage = _addLabel("GAME_SETTINGS/PAGE_BTN", theme.btnFont, L"", 68, 400, 104, 48, theme.btnFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE, theme.btnTexC);
|
|
|
|
m_gameSettingsBtnPageM = _addPicButton("GAME_SETTINGS/PAGE_MINUS", theme.btnTexMinus, theme.btnTexMinusS, 20, 400, 48, 48);
|
|
|
|
m_gameSettingsBtnPageP = _addPicButton("GAME_SETTINGS/PAGE_PLUS", theme.btnTexPlus, theme.btnTexPlusS, 172, 400, 48, 48);
|
|
|
|
m_gameSettingsBtnBack = _addButton("GAME_SETTINGS/BACK_BTN", theme.btnFont, L"", 420, 400, 200, 48, theme.btnFontColor);
|
2012-03-12 17:14:56 +01:00
|
|
|
|
2013-01-05 18:12:13 +01:00
|
|
|
// Hide Animations
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblTitle, "GAME_SETTINGS/TITLE", 0, 0, -2.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblGameVideo, "GAME_SETTINGS/VIDEO", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblVideo, "GAME_SETTINGS/VIDEO_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnVideoM, "GAME_SETTINGS/VIDEO_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnVideoP, "GAME_SETTINGS/VIDEO_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblCustom, "GAME_SETTINGS/CUSTOM", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnCustom, "GAME_SETTINGS/CUSTOM_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblLaunchNK, "GAME_SETTINGS/LAUNCHNEEK", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnLaunchNK, "GAME_SETTINGS/LAUNCHNEEK_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblGameLanguage, "GAME_SETTINGS/GAME_LANG", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblLanguage, "GAME_SETTINGS/GAME_LANG_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnLanguageM, "GAME_SETTINGS/GAME_LANG_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnLanguageP, "GAME_SETTINGS/GAME_LANG_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblOcarina, "GAME_SETTINGS/OCARINA", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnOcarina, "GAME_SETTINGS/OCARINA_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblCheat, "GAME_SETTINGS/CHEAT", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnCheat, "GAME_SETTINGS/CHEAT_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblCountryPatch, "GAME_SETTINGS/COUNTRY_PATCH", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnCountryPatch, "GAME_SETTINGS/COUNTRY_PATCH_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-04-02 17:46:06 +02:00
|
|
|
_setHideAnim(m_gameSettingsLblPrivateServer, "GAME_SETTINGS/PRIVATE_SERVER", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPrivateServer, "GAME_SETTINGS/PRIVATE_SERVER_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
2019-09-23 16:20:22 +02:00
|
|
|
_setHideAnim(m_gameSettingsLblFix480p, "GAME_SETTINGS/FIX480P", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnFix480p, "GAME_SETTINGS/FIX480P_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblVipatch, "GAME_SETTINGS/VIPATCH", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnVipatch, "GAME_SETTINGS/VIPATCH_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblGameIOS, "GAME_SETTINGS/IOS", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblIOS, "GAME_SETTINGS/IOS_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnIOSM, "GAME_SETTINGS/IOS_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnIOSP, "GAME_SETTINGS/IOS_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblManage, "GAME_SETTINGS/MANAGE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnManage, "GAME_SETTINGS/MANAGE_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblPatchVidModes, "GAME_SETTINGS/PATCH_VIDEO_MODE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblPatchVidModesVal, "GAME_SETTINGS/PATCH_VIDEO_MODE_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPatchVidModesM, "GAME_SETTINGS/PATCH_VIDEO_MODE_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPatchVidModesP, "GAME_SETTINGS/PATCH_VIDEO_MODE_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblAspectRatio, "GAME_SETTINGS/ASPECT_RATIO", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblAspectRatioVal, "GAME_SETTINGS/ASPECT_RATIO_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnAspectRatioP, "GAME_SETTINGS/ASPECT_RATIO_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnAspectRatioM, "GAME_SETTINGS/ASPECT_RATIO_MINUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblApploader, "GAME_SETTINGS/APPLDR", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnApploader, "GAME_SETTINGS/APPLDR_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblLED, "GAME_SETTINGS/LED", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnLED, "GAME_SETTINGS/LED_BTN", -50, 0, 1.f, 0.f);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
2017-03-17 01:02:21 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblCC_Rumble, "GAME_SETTINGS/CC_RUMBLE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnCC_Rumble, "GAME_SETTINGS/CC_RUMBLE_BTN", -50, 0, 1.f, 0.f);
|
2016-04-02 17:46:06 +02:00
|
|
|
|
|
|
|
_setHideAnim(m_gameSettingsLblNATIVE_CTL, "GAME_SETTINGS/NATIVE_CTL", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnNATIVE_CTL, "GAME_SETTINGS/NATIVE_CTL_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
|
|
|
_setHideAnim(m_gameSettingsLblDeflicker, "GAME_SETTINGS/DEFLICKER", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnDeflicker, "GAME_SETTINGS/DEFLICKER_BTN", -50, 0, 1.f, 0.f);
|
2013-01-19 21:48:07 +01:00
|
|
|
|
2016-04-02 18:58:12 +02:00
|
|
|
_setHideAnim(m_gameSettingsLblEmuMemCard, "GAME_SETTINGS/DML_NMM", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblEmuMemCard_Val, "GAME_SETTINGS/DML_NMM_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnEmuMemCard_P, "GAME_SETTINGS/DML_NMM_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnEmuMemCard_M, "GAME_SETTINGS/DML_NMM_MINUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblDevoMemcardEmu, "GAME_SETTINGS/DEVO_MEMCARD_EMU", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnDevoMemcardEmu, "GAME_SETTINGS/DEVO_MEMCARD_EMU_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2016-12-28 13:36:33 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblWidescreen, "GAME_SETTINGS/WIDESCREEN", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnWidescreen, "GAME_SETTINGS/WIDESCREEN_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
_setHideAnim(m_gameSettingsLblWiiuWidescreen, "GAME_SETTINGS/WIIU_WIDESCREEN", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnWiiuWidescreen, "GAME_SETTINGS/WIIU_WIDESCREEN_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblArcade, "GAME_SETTINGS/ARCADE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnArcade, "GAME_SETTINGS/ARCADE_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
2017-03-17 01:02:21 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblSkip_IPL, "GAME_SETTINGS/SKIP_IPL", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnSkip_IPL, "GAME_SETTINGS/SKIP_IPL_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
2017-04-18 01:23:50 +02:00
|
|
|
_setHideAnim(m_gameSettingsLblPatch50, "GAME_SETTINGS/PATCH_PAL50", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPatch50, "GAME_SETTINGS/PATCH_PAL50_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
|
|
|
_setHideAnim(m_gameSettingsLblWidth, "GAME_SETTINGS/NIN_WIDTH", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblWidthVal, "GAME_SETTINGS/NIN_WIDTH_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnWidthM, "GAME_SETTINGS/NIN_WIDTH_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnWidthP, "GAME_SETTINGS/NIN_WIDTH_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
|
|
|
|
_setHideAnim(m_gameSettingsLblPos, "GAME_SETTINGS/NIN_POS", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblPosVal, "GAME_SETTINGS/NIN_POS_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPosM, "GAME_SETTINGS/NIN_POS_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPosP, "GAME_SETTINGS/NIN_POS_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
|
2019-11-01 01:00:58 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblBBA, "GAME_SETTINGS/BBA", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnBBA, "GAME_SETTINGS/BBA_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
|
|
|
|
_setHideAnim(m_gameSettingsLblNetProf, "GAME_SETTINGS/NET_PROFILE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblNetProfVal, "GAME_SETTINGS/NET_PROFILE_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnNetProfM, "GAME_SETTINGS/NET_PROFILE_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnNetProfP, "GAME_SETTINGS/NET_PROFILE_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblGCLoader, "GAME_SETTINGS/GC_LOADER", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblGCLoader_Val, "GAME_SETTINGS/GC_LOADER_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnGCLoader_P, "GAME_SETTINGS/GC_LOADER_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnGCLoader_M, "GAME_SETTINGS/GC_LOADER_MINUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblHooktype, "GAME_SETTINGS/HOOKTYPE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblHooktypeVal, "GAME_SETTINGS/HOOKTYPE_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnHooktypeM, "GAME_SETTINGS/HOOKTYPE_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnHooktypeP, "GAME_SETTINGS/HOOKTYPE_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblEmulation, "GAME_SETTINGS/EMU_SAVE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblEmulationVal, "GAME_SETTINGS/EMU_SAVE_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnEmulationP, "GAME_SETTINGS/EMU_SAVE_PLUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnEmulationM, "GAME_SETTINGS/EMU_SAVE_MINUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblDebugger, "GAME_SETTINGS/GAME_DEBUGGER", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsLblDebuggerV, "GAME_SETTINGS/GAME_DEBUGGER_BTN", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnDebuggerM, "GAME_SETTINGS/GAME_DEBUGGER_MINUS", -50, 0, 1.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnDebuggerP, "GAME_SETTINGS/GAME_DEBUGGER_PLUS", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblExtractSave, "GAME_SETTINGS/EXTRACT_SAVE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnExtractSave, "GAME_SETTINGS/EXTRACT_SAVE_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblFlashSave, "GAME_SETTINGS/FLASH_SAVE", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnFlashSave, "GAME_SETTINGS/FLASH_SAVE_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2019-03-04 21:29:46 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblAdultOnly, "GAME_SETTINGS/ADULT_ONLY", 50, 0, -2.f, 0.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnAdultOnly, "GAME_SETTINGS/ADULT_ONLY_BTN", -50, 0, 1.f, 0.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameSettingsLblPage, "GAME_SETTINGS/PAGE_BTN", 0, 0, 1.f, -1.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPageM, "GAME_SETTINGS/PAGE_MINUS", 0, 0, 1.f, -1.f);
|
|
|
|
_setHideAnim(m_gameSettingsBtnPageP, "GAME_SETTINGS/PAGE_PLUS", 0, 0, 1.f, -1.f);
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
_setHideAnim(m_gameSettingsBtnBack, "GAME_SETTINGS/BACK_BTN", 0, 0, 1.f, -1.f);
|
2013-01-05 18:12:13 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
_hideGameSettings(true);
|
|
|
|
_textGameSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_textGameSettings(void)
|
|
|
|
{
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblTitle, _t("cfgg1", L"Settings"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnBack, _t("cfgg8", L"Back"));
|
2016-04-03 02:31:02 +02:00
|
|
|
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblManage, _t("cfgg40", L"Manage Cover and Banner"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnManage, _t("cfgg41", L"Manage"));
|
2019-03-04 21:29:46 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblAdultOnly, _t("cfgg58", L"Adult only"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblGCLoader, _t("cfgg35", L"GameCube Loader"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblGameVideo, _t("cfgg2", L"Video mode"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblGameLanguage, _t("cfgg3", L"Language"));
|
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblHooktype, _t("cfgg18", L"Hook Type"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblDebugger, _t("cfgg22", L"Debugger"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblOcarina, _t("cfgg5", L"Ocarina"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblCheat, _t("cfgg15", L"Cheat Codes"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnCheat, _t("cfgg16", L"Select"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblDeflicker, _t("cfgg44", L"Video Deflicker"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblDevoMemcardEmu, _t("cfgg47", L"Emulated MemCard"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblWidescreen, _t("cfgg36", L"Widescreen Patch"));
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblWiiuWidescreen, _t("cfgg46", L"WiiU Widescreen"));
|
2016-04-03 02:31:02 +02:00
|
|
|
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblCountryPatch, _t("cfgg4", L"Patch country strings"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblVipatch, _t("cfgg7", L"Vipatch"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblPatchVidModes, _t("cfgg14", L"Patch video modes"));
|
2012-01-27 14:59:36 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblAspectRatio, _t("cfgg27", L"Aspect Ratio"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblApploader, _t("cfgg37", L"Boot Apploader"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblEmuMemCard, _t("cfgg47", L"Emulated MemCard"));
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblCC_Rumble, _t("cfgg52", L"Wiimote CC Rumble"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblNATIVE_CTL, _t("cfgg43", L"Native Control"));
|
2017-03-17 01:02:21 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblSkip_IPL, _t("cfgg53", L"Skip IPL BIOS"));
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblPatch50, _t("cfgg56", L"Patch PAL50"));
|
2019-11-01 01:00:58 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblBBA, _t("cfgg59", L"BBA Emulation"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblNetProf, _t("cfgg60", L"BBA Net Profile"));
|
2016-04-03 02:31:02 +02:00
|
|
|
|
2016-11-07 16:06:00 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblArcade, _t("cfgg48", L"Triforce Arcade Mode"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblEmulation, _t("cfgg24", L"NAND Emulation"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblGameIOS, _t("cfgg10", L"IOS"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblLED, _t("cfgg38", L"Activity LED"));
|
2012-05-11 01:38:34 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblExtractSave, _t("cfgg30", L"Extract Save from NAND"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnExtractSave, _t("cfgg31", L"Extract"));
|
2016-04-03 02:31:02 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblCustom, _t("custom", L"Custom"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblLaunchNK, _t("neek1", L"Launch Title with neek2o"));
|
|
|
|
|
2012-05-11 01:38:34 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblFlashSave, _t("cfgg32", L"Flash Save to NAND"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsBtnFlashSave, _t("cfgg33", L"Flash"));
|
2018-12-15 17:11:17 +01:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblPrivateServer, _t("cfgg45", L"Private Server (Wiimmfi)"));
|
2019-09-23 16:20:22 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblFix480p, _t("cfgg49", L"480p Pixel Patch"));
|
2017-04-18 01:23:50 +02:00
|
|
|
m_btnMgr.setText(m_gameSettingsLblWidth, _t("cfgg54", L"Video Width"));
|
|
|
|
m_btnMgr.setText(m_gameSettingsLblPos, _t("cfgg55", L"Video Position"));
|
2012-01-30 06:25:56 +01:00
|
|
|
}
|