2012-05-06 12:59:58 +02:00
|
|
|
/****************************************************************************
|
2014-05-04 17:46:13 +02:00
|
|
|
* Copyright (C) 2012-2014 by Cyan
|
2012-05-06 12:59:58 +02:00
|
|
|
* Copyright (C) 2012 Dimok
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <gccore.h>
|
|
|
|
#include "settings/CSettings.h"
|
|
|
|
#include "settings/CGameStatistics.h"
|
|
|
|
#include "themes/CTheme.h"
|
|
|
|
#include "prompts/PromptWindows.h"
|
|
|
|
#include "prompts/DiscBrowser.h"
|
|
|
|
#include "prompts/filebrowser.h"
|
|
|
|
#include "usbloader/AlternateDOLOffsets.h"
|
|
|
|
#include "language/gettext.h"
|
|
|
|
#include "wad/nandtitle.h"
|
|
|
|
#include "system/IosLoader.h"
|
|
|
|
#include "GCGameLoadSM.hpp"
|
|
|
|
|
|
|
|
static const char * OnOffText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" ),
|
|
|
|
trNOOP( "Auto" )
|
|
|
|
};
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
static const char * LanguageText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "English" ),
|
|
|
|
trNOOP( "German" ),
|
|
|
|
trNOOP( "French" ),
|
|
|
|
trNOOP( "Spanish" ),
|
|
|
|
trNOOP( "Italian" ),
|
|
|
|
trNOOP( "Dutch" ),
|
|
|
|
trNOOP( "Console Default" ),
|
|
|
|
};
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
static const char * ParentalText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "0 (Everyone)" ),
|
|
|
|
trNOOP( "1 (Child 7+)" ),
|
|
|
|
trNOOP( "2 (Teen 12+)" ),
|
|
|
|
trNOOP( "3 (Mature 16+)" ),
|
|
|
|
trNOOP( "4 (Adults Only 18+)" )
|
|
|
|
};
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
static const char * GCMode[] =
|
|
|
|
{
|
|
|
|
trNOOP( "MIOS (Default & Customs)" ),
|
|
|
|
trNOOP( "Devolution" ),
|
2013-10-01 23:13:08 +02:00
|
|
|
trNOOP( "Nintendont" ),
|
2012-07-16 18:07:24 +02:00
|
|
|
};
|
|
|
|
|
2012-07-22 22:30:59 +02:00
|
|
|
static const char * DMLVideoText[] =
|
|
|
|
{
|
2013-10-01 23:13:08 +02:00
|
|
|
trNOOP( "Auto" ),
|
2014-05-04 17:46:13 +02:00
|
|
|
trNOOP( "System Default" ),
|
|
|
|
trNOOP( "Disc Default" ),
|
|
|
|
trNOOP( "Force PAL50" ),
|
|
|
|
trNOOP( "Force PAL60" ),
|
|
|
|
trNOOP( "Force NTSC" ),
|
|
|
|
"", // unused
|
|
|
|
trNOOP( "Force PAL480p" ),
|
|
|
|
trNOOP( "Force NTSC480p" ),
|
2013-10-01 23:13:08 +02:00
|
|
|
trNOOP( "None" ),
|
2012-07-22 22:30:59 +02:00
|
|
|
};
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
static const char * DMLNMMMode[] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" ),
|
|
|
|
trNOOP( "Debug" ),
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char * DMLDebug[] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" ),
|
|
|
|
trNOOP( "Debug Wait" ),
|
|
|
|
};
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
static const char * DEVOMCText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" ),
|
|
|
|
trNOOP( "Individual" ),
|
|
|
|
};
|
|
|
|
|
2014-08-18 21:19:20 +02:00
|
|
|
static const char * NINMCText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "Individual" ),
|
|
|
|
trNOOP( "ON" ),
|
|
|
|
};
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
static int currentGCmode = 0;
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
GCGameLoadSM::GCGameLoadSM(struct discHdr *hdr)
|
|
|
|
: SettingsMenu(tr("Game Load"), &GuiOptions, MENU_NONE),
|
|
|
|
Header(hdr)
|
|
|
|
{
|
|
|
|
GameConfig = *GameSettings.GetGameCFG((const char *) Header->id);
|
|
|
|
|
|
|
|
if(!btnOutline)
|
|
|
|
btnOutline = Resources::GetImageData("button_dialogue_box.png");
|
|
|
|
if(!trigA)
|
|
|
|
trigA = new GuiTrigger();
|
|
|
|
trigA->SetSimpleTrigger(-1, WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A, PAD_BUTTON_A);
|
|
|
|
|
|
|
|
saveBtnTxt = new GuiText(tr( "Save" ), 22, thColor("r=0 g=0 b=0 a=255 - prompt windows button text color"));
|
|
|
|
saveBtnTxt->SetMaxWidth(btnOutline->GetWidth() - 30);
|
|
|
|
saveBtnImg = new GuiImage (btnOutline);
|
|
|
|
if (Settings.wsprompt == ON)
|
|
|
|
{
|
|
|
|
saveBtnTxt->SetWidescreen(Settings.widescreen);
|
|
|
|
saveBtnImg->SetWidescreen(Settings.widescreen);
|
|
|
|
}
|
|
|
|
saveBtn = new GuiButton(saveBtnImg, saveBtnImg, 2, 3, 180, 400, trigA, btnSoundOver, btnSoundClick2, 1);
|
|
|
|
saveBtn->SetLabel(saveBtnTxt);
|
|
|
|
Append(saveBtn);
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
currentGCmode = GameConfig.GameCubeMode == INHERIT ? Settings.GameCubeMode : GameConfig.GameCubeMode;
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
SetOptionNames();
|
|
|
|
SetOptionValues();
|
|
|
|
}
|
|
|
|
|
|
|
|
GCGameLoadSM::~GCGameLoadSM()
|
|
|
|
{
|
|
|
|
HaltGui();
|
|
|
|
//! The rest is destroyed in SettingsMenu.cpp
|
|
|
|
Remove(saveBtn);
|
|
|
|
delete saveBtnTxt;
|
|
|
|
delete saveBtnImg;
|
|
|
|
delete saveBtn;
|
|
|
|
ResumeGui();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCGameLoadSM::SetDefaultConfig()
|
|
|
|
{
|
|
|
|
char id[7];
|
|
|
|
snprintf(id, sizeof(id), GameConfig.id);
|
|
|
|
GameSettings.SetDefault(GameConfig);
|
|
|
|
snprintf(GameConfig.id, sizeof(GameConfig.id), id);
|
|
|
|
}
|
|
|
|
|
|
|
|
void GCGameLoadSM::SetOptionNames()
|
|
|
|
{
|
|
|
|
int Idx = 0;
|
|
|
|
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Game Lock" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Favorite Level" ));
|
2012-07-16 18:07:24 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Game Language" ));
|
2012-05-06 12:59:58 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Parental Control" ));
|
2012-07-16 18:07:24 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "GameCube Mode" ));
|
2013-10-01 23:13:08 +02:00
|
|
|
if(currentGCmode == GC_MODE_MIOS &&IosLoader::GetMIOSInfo() > DEFAULT_MIOS)
|
2012-08-24 18:55:49 +02:00
|
|
|
{
|
2014-05-04 17:46:13 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "--== DIOS MIOS (Lite) " ));
|
2013-10-01 23:13:08 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Video Mode" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Progressive Patch" ));
|
2012-11-11 14:47:02 +01:00
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_1)
|
2013-10-01 23:13:08 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Force Widescreen" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Ocarina" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "NMM Mode" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Debug" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "LED Activity" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "PAD Hook" ));
|
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2 && IosLoader::GetDMLVersion() <= DML_VERSION_DML_2_2_1)
|
|
|
|
Options->SetName(Idx++, "%s", tr( "No Disc+" ));
|
2012-11-11 14:47:02 +01:00
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_5)
|
2013-10-01 23:13:08 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Screenshot" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Japanese Patch" ));
|
|
|
|
}
|
|
|
|
if(currentGCmode == GC_MODE_NINTENDONT)
|
|
|
|
{
|
2014-05-04 17:46:13 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "--== Nintendont" ));
|
2013-10-01 23:13:08 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Video Mode" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Progressive Patch" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Force Widescreen" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Ocarina" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Memory Card Emulation" ));
|
2014-08-18 21:19:20 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Memory Card Blocks Size" ));
|
2013-10-01 23:13:08 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Debug" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "USB-HID Controller" ));
|
2014-08-02 18:53:56 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "GameCube Controller" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "LED Activity" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "OSReport" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Log to file" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Nintendont Loader Path" ));
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
|
|
|
if(currentGCmode == GC_MODE_DEVOLUTION)
|
|
|
|
{
|
|
|
|
Options->SetName(Idx++, "%s", tr( "--== Devolution" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Memory Card Emulation" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Force Widescreen" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "LED Activity" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "F-Zero AX" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Timer Fix" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "D Buttons" ));
|
2014-08-18 21:19:20 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Crop Overscan" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Disc Read Delay" ));
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
2012-05-06 12:59:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void GCGameLoadSM::SetOptionValues()
|
|
|
|
{
|
|
|
|
int Idx = 0;
|
|
|
|
|
|
|
|
//! Settings: Game Lock
|
|
|
|
Options->SetValue(Idx++, "%s", tr( OnOffText[GameConfig.Locked] ));
|
|
|
|
|
|
|
|
//! Settings: Favorite Level
|
|
|
|
Options->SetValue(Idx++, "%i", GameStatistics.GetFavoriteRank(Header->id));
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: Game Language
|
|
|
|
if(GameConfig.language == INHERIT)
|
* Improved GameCube controller functions (patch by Dynamit)
R+Z=Screenshot, X=Gameinfo window, Y=Covers download
* Added Classic Controller and GameCube Controller support
in GameInfo window:
Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom
* Added Wifi6 and wifi10 pictures for GameInfo window.
(Thanks OriginalHamster)
* Added device priority selection for GameCube listing
in global Loader settings (SD->USB, or USB->SD)
* Added a "Use global" language setting for Gamecube games.
* Added support for USB devices with modified MBR's signature
to prevent WiiU's format message.
* Prevent Rockband cursor display on GameCube and WiiWare
games with "band" in the title (Crach bandicoot, Beach
Bandits, etc.)
* Added Dol's Video mode patcher in Loader/Game settings,
for games which couldn't be forced. (MadWorld, MotoGP08,
Mario Party 8, etc.)
♦ Region patch = Patches the dol's known video modes
to the region selected in "Video mode" setting,
but keep interlace/progressive references.
♦ ON = Patch all dol's known video modes to the one
selected in "Video mode" setting.
♦ ALL = Patch all dol's found video mode patterns
(even unknown video modes) to the one selected
in "Video mode" setting.
* DML: Updated DM(L) version detection up to v2.10
* DML: Automatically enable PADHook if Screenshot setting
is enabled
* DML: Fixed a bug where multiple video modes could be set
at the same time
* DEVO: Added a prompt if trying to launch a game from a
non FAT32 partition.
* DEVO: Added Direct Mapping Buttons setting (Devo r200+)
* DEVO: Added support for Language setting
* Language files updated: Chinese, French
2013-08-18 16:30:39 +02:00
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(LanguageText[GameConfig.language]));
|
2012-05-06 12:59:58 +02:00
|
|
|
|
|
|
|
//! Settings: Parental Control
|
|
|
|
Options->SetValue(Idx++, "%s", tr(ParentalText[GameConfig.parentalcontrol]));
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: GameCube Mode
|
|
|
|
if(GameConfig.GameCubeMode == INHERIT)
|
2012-05-06 12:59:58 +02:00
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
2012-07-16 18:07:24 +02:00
|
|
|
Options->SetValue(Idx++, "%s", tr(GCMode[GameConfig.GameCubeMode]));
|
2012-08-24 18:55:49 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
if(currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS)
|
2012-08-24 18:55:49 +02:00
|
|
|
{
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
//! Settings: GameCube TITLE : DIOS MIOS (Lite) + Nintendont
|
|
|
|
Options->SetValue(Idx++, "==-- ");
|
|
|
|
|
|
|
|
//! Settings: DML + NIN Video Mode
|
2012-08-24 18:55:49 +02:00
|
|
|
if(GameConfig.DMLVideo == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DMLVideoText[GameConfig.DMLVideo]));
|
2012-07-16 18:07:24 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DML + NIN Progressive Patch
|
2012-08-24 18:55:49 +02:00
|
|
|
if(GameConfig.DMLProgPatch == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLProgPatch]));
|
2012-07-22 22:30:59 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DML + NIN Force Widescreen
|
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_1)
|
|
|
|
{
|
|
|
|
if(GameConfig.DMLWidescreen == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLWidescreen]));
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Ocarina
|
|
|
|
if(GameConfig.ocarina == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.ocarina]));
|
|
|
|
|
|
|
|
//! Settings: DML + NIN NMM Mode
|
2012-08-24 18:55:49 +02:00
|
|
|
if(GameConfig.DMLNMM == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DMLNMMMode[GameConfig.DMLNMM]));
|
2012-05-06 12:59:58 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DML + NIN Debug
|
|
|
|
if(GameConfig.DMLDebug == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DMLDebug[GameConfig.DMLDebug]));
|
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML LED Activity
|
|
|
|
if(GameConfig.DMLActivityLED == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLActivityLED]));
|
2012-05-06 12:59:58 +02:00
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML PAD Hook
|
|
|
|
if(GameConfig.DMLPADHOOK == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLPADHOOK]));
|
2012-05-06 12:59:58 +02:00
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Extended No Disc
|
2012-10-14 18:27:01 +02:00
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2 && IosLoader::GetDMLVersion() <= DML_VERSION_DML_2_2_1)
|
2012-08-24 18:55:49 +02:00
|
|
|
{
|
|
|
|
if(GameConfig.DMLNoDisc2 == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLNoDisc2]));
|
|
|
|
}
|
2012-05-06 12:59:58 +02:00
|
|
|
|
2012-11-11 14:47:02 +01:00
|
|
|
//! Settings: DML Screenshot
|
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_5)
|
|
|
|
{
|
|
|
|
if(GameConfig.DMLScreenshot == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLScreenshot]));
|
|
|
|
}
|
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Japanese Patch
|
|
|
|
if(GameConfig.DMLJPNPatch == INHERIT)
|
2012-07-22 19:08:54 +02:00
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
2012-08-24 18:55:49 +02:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLJPNPatch]));
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(currentGCmode == GC_MODE_NINTENDONT)
|
|
|
|
{
|
2012-07-22 19:08:54 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: GameCube TITLE : DIOS MIOS (Lite) + Nintendont
|
|
|
|
Options->SetValue(Idx++, "==-- ");
|
|
|
|
|
|
|
|
//! Settings: DML + NIN Video Mode
|
|
|
|
if(GameConfig.DMLVideo == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DMLVideoText[GameConfig.DMLVideo]));
|
|
|
|
|
|
|
|
//! Settings: DML + NIN Progressive Patch
|
|
|
|
if(GameConfig.DMLProgPatch == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLProgPatch]));
|
|
|
|
|
|
|
|
//! Settings: DML + NIN Force Widescreen
|
|
|
|
if(GameConfig.DMLWidescreen == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLWidescreen]));
|
|
|
|
|
|
|
|
//! Settings: Ocarina
|
|
|
|
if(GameConfig.ocarina == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.ocarina]));
|
|
|
|
|
|
|
|
//! Settings: NIN Memory Card Emulation
|
|
|
|
if(GameConfig.NINMCEmulation == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
2014-08-18 21:19:20 +02:00
|
|
|
Options->SetValue(Idx++, "%s", tr(NINMCText[GameConfig.NINMCEmulation]));
|
|
|
|
|
|
|
|
//! Settings: NIN Memory Card Blocks Size
|
|
|
|
if(GameConfig.NINMCSize == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%d", MEM_CARD_BLOCKS(GameConfig.NINMCSize));
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
//! Settings: DML + NIN Debug
|
2012-08-24 18:55:49 +02:00
|
|
|
if(GameConfig.DMLDebug == INHERIT)
|
2012-07-22 19:08:54 +02:00
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
2012-08-24 18:55:49 +02:00
|
|
|
Options->SetValue(Idx++, "%s", tr(DMLDebug[GameConfig.DMLDebug]));
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
//! Settings: NIN USB-HID Controller
|
|
|
|
if(GameConfig.NINUSBHID == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.NINUSBHID]));
|
|
|
|
|
2014-08-02 18:53:56 +02:00
|
|
|
//! Settings: NIN MaxPads - Number of GameCube Controllers
|
|
|
|
if(GameConfig.NINMaxPads == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%i", GameConfig.NINMaxPads);
|
|
|
|
|
|
|
|
//! Settings: NIN LED Activity
|
|
|
|
if(GameConfig.NINLED == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.NINLED]));
|
|
|
|
|
|
|
|
//! Settings: NIN OS Report
|
|
|
|
if(GameConfig.NINOSReport == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.NINOSReport]));
|
|
|
|
|
|
|
|
//! Settings: NIN Log to file
|
|
|
|
if(GameConfig.NINLog == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.NINLog]));
|
|
|
|
|
|
|
|
//! Settings: NIN Individual Loader path setting
|
|
|
|
if(GameConfig.NINLoaderPath.size() == 0)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", GameConfig.NINLoaderPath.c_str());
|
|
|
|
|
2012-07-22 19:08:54 +02:00
|
|
|
}
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
if(currentGCmode == GC_MODE_DEVOLUTION)
|
|
|
|
{
|
|
|
|
|
|
|
|
//! Settings: GameCube TITLE : Devolution
|
|
|
|
Options->SetValue(Idx++, "==-- ");
|
|
|
|
|
|
|
|
//! Settings: DEVO Memory Card Emulation
|
|
|
|
if(GameConfig.DEVOMCEmulation == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DEVOMCText[GameConfig.DEVOMCEmulation]));
|
2013-04-14 23:02:09 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DEVO Widescreen Patch
|
|
|
|
if(GameConfig.DEVOWidescreen == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVOWidescreen]));
|
2013-04-14 23:02:09 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DEVO Activity LED
|
|
|
|
if(GameConfig.DEVOActivityLED == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVOActivityLED]));
|
2013-04-14 23:02:09 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DEVO F-Zero AX unlock patch
|
|
|
|
if(GameConfig.DEVOFZeroAX == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVOFZeroAX]));
|
2013-04-14 23:02:09 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DEVO Timer Fix
|
|
|
|
if(GameConfig.DEVOTimerFix == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVOTimerFix]));
|
2013-04-14 23:02:09 +02:00
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DEVO Direct Button Mapping
|
|
|
|
if(GameConfig.DEVODButtons == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVODButtons]));
|
2014-08-18 21:19:20 +02:00
|
|
|
|
|
|
|
//! Settings: DEVO Crop Overscan
|
|
|
|
if(GameConfig.DEVOCropOverscan == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVOCropOverscan]));
|
|
|
|
|
|
|
|
//! Settings: DEVO Disc Read Delay
|
|
|
|
if(GameConfig.DEVODiscDelay == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVODiscDelay]));
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
2012-05-06 12:59:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int GCGameLoadSM::GetMenuInternal()
|
|
|
|
{
|
|
|
|
if (saveBtn->GetState() == STATE_CLICKED)
|
|
|
|
{
|
|
|
|
if (GameSettings.AddGame(GameConfig) && GameSettings.Save())
|
|
|
|
{
|
|
|
|
WindowPrompt(tr( "Successfully Saved" ), 0, tr( "OK" ));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
WindowPrompt(tr( "Save Failed. No device inserted?" ), 0, tr( "OK" ));
|
|
|
|
|
|
|
|
saveBtn->ResetState();
|
|
|
|
}
|
|
|
|
|
|
|
|
int ret = optionBrowser->GetClickedOption();
|
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
return MENU_NONE;
|
|
|
|
|
|
|
|
int Idx = -1;
|
|
|
|
|
|
|
|
//! Settings: Game Lock
|
|
|
|
if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.Locked >= MAX_ON_OFF) GameConfig.Locked = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Favorite Level
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
int Level = GameStatistics.GetFavoriteRank(Header->id);
|
|
|
|
if (++Level > 5) Level = 0;
|
|
|
|
|
|
|
|
GameStatistics.SetFavoriteRank(Header->id, Level);
|
|
|
|
GameStatistics.Save();
|
|
|
|
}
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: Game Language
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
* Improved GameCube controller functions (patch by Dynamit)
R+Z=Screenshot, X=Gameinfo window, Y=Covers download
* Added Classic Controller and GameCube Controller support
in GameInfo window:
Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom
* Added Wifi6 and wifi10 pictures for GameInfo window.
(Thanks OriginalHamster)
* Added device priority selection for GameCube listing
in global Loader settings (SD->USB, or USB->SD)
* Added a "Use global" language setting for Gamecube games.
* Added support for USB devices with modified MBR's signature
to prevent WiiU's format message.
* Prevent Rockband cursor display on GameCube and WiiWare
games with "band" in the title (Crach bandicoot, Beach
Bandits, etc.)
* Added Dol's Video mode patcher in Loader/Game settings,
for games which couldn't be forced. (MadWorld, MotoGP08,
Mario Party 8, etc.)
♦ Region patch = Patches the dol's known video modes
to the region selected in "Video mode" setting,
but keep interlace/progressive references.
♦ ON = Patch all dol's known video modes to the one
selected in "Video mode" setting.
♦ ALL = Patch all dol's found video mode patterns
(even unknown video modes) to the one selected
in "Video mode" setting.
* DML: Updated DM(L) version detection up to v2.10
* DML: Automatically enable PADHook if Screenshot setting
is enabled
* DML: Fixed a bug where multiple video modes could be set
at the same time
* DEVO: Added a prompt if trying to launch a game from a
non FAT32 partition.
* DEVO: Added Direct Mapping Buttons setting (Devo r200+)
* DEVO: Added support for Language setting
* Language files updated: Chinese, French
2013-08-18 16:30:39 +02:00
|
|
|
if (++GameConfig.language >= GC_MAX_LANGUAGE) GameConfig.language = INHERIT;
|
2012-07-16 18:07:24 +02:00
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: Parental Control
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.parentalcontrol >= 5) GameConfig.parentalcontrol = 0;
|
|
|
|
}
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: GameCube Mode
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.GameCubeMode >= CG_MODE_MAX_CHOICE) GameConfig.GameCubeMode = INHERIT;
|
2013-10-01 23:13:08 +02:00
|
|
|
currentGCmode = GameConfig.GameCubeMode == INHERIT ? Settings.GameCubeMode : GameConfig.GameCubeMode;
|
|
|
|
Options->ClearList();
|
|
|
|
SetOptionNames();
|
|
|
|
SetOptionValues();
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: GameCube TITLE : DIOS MIOS (Lite) + Nintendont
|
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
|
|
|
{
|
|
|
|
// This one is a category title
|
2012-07-16 18:07:24 +02:00
|
|
|
}
|
|
|
|
|
2012-07-22 22:30:59 +02:00
|
|
|
//! Settings: DML Video Mode
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-07-22 22:30:59 +02:00
|
|
|
{
|
2014-05-04 17:46:13 +02:00
|
|
|
GameConfig.DMLVideo++;
|
|
|
|
if(GameConfig.DMLVideo == DML_VIDEO_FORCE_PATCH) // Skip Force Patch
|
|
|
|
GameConfig.DMLVideo++;
|
|
|
|
if(GameConfig.DMLVideo >= DML_VIDEO_MAX_CHOICE) GameConfig.DMLVideo = INHERIT;
|
2012-07-22 22:30:59 +02:00
|
|
|
}
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: DML Progressive Patch
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
2012-07-16 18:07:24 +02:00
|
|
|
if (++GameConfig.DMLProgPatch >= MAX_ON_OFF) GameConfig.DMLProgPatch = INHERIT;
|
2012-05-06 12:59:58 +02:00
|
|
|
}
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DML Force Widescreen
|
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_1 && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DMLWidescreen >= MAX_ON_OFF) GameConfig.DMLWidescreen = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Ocarina
|
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.ocarina >= MAX_ON_OFF) GameConfig.ocarina = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: DML NMM Mode
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLNMM >= 3) GameConfig.DMLNMM = INHERIT;
|
|
|
|
}
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: DML Debug
|
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DMLDebug >= 3) GameConfig.DMLDebug = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: DML LED Activity
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLActivityLED >= MAX_ON_OFF) GameConfig.DMLActivityLED = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DML PAD Hook
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLPADHOOK >= MAX_ON_OFF) GameConfig.DMLPADHOOK = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-07-22 19:08:54 +02:00
|
|
|
//! Settings: DML Extended No Disc
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2 && IosLoader::GetDMLVersion() <= DML_VERSION_DML_2_2_1 && ret == ++Idx)
|
2012-07-22 19:08:54 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLNoDisc2 >= MAX_ON_OFF) GameConfig.DMLNoDisc2 = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-11-11 14:47:02 +01:00
|
|
|
//! Settings: DML Screenshot
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_5 && ret == ++Idx)
|
2012-11-11 14:47:02 +01:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLScreenshot >= MAX_ON_OFF) GameConfig.DMLScreenshot = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Japanese Patch
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_MIOS && IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-08-24 18:55:49 +02:00
|
|
|
{
|
2012-11-11 14:47:02 +01:00
|
|
|
if (++GameConfig.DMLJPNPatch >= MAX_ON_OFF) GameConfig.DMLJPNPatch = INHERIT;
|
2012-08-24 18:55:49 +02:00
|
|
|
}
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
//! Settings: GameCube TITLE : DIOS MIOS (Lite) + Nintendont
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
// This one is a category title
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Video Mode
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
2014-05-04 17:46:13 +02:00
|
|
|
GameConfig.DMLVideo++;
|
|
|
|
if(GameConfig.DMLVideo == DML_VIDEO_FORCE_PATCH) // Skip Force Patch
|
|
|
|
GameConfig.DMLVideo++;
|
|
|
|
if(GameConfig.DMLVideo >= DML_VIDEO_MAX_CHOICE) GameConfig.DMLVideo = INHERIT;
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Progressive Patch
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DMLProgPatch >= MAX_ON_OFF) GameConfig.DMLProgPatch = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Force Widescreen
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DMLWidescreen >= MAX_ON_OFF) GameConfig.DMLWidescreen = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Ocarina
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.ocarina >= MAX_ON_OFF) GameConfig.ocarina = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Memory Card Emulation
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
2014-08-18 21:19:20 +02:00
|
|
|
if (++GameConfig.NINMCEmulation >= NIN_MC_MAX_CHOICE) GameConfig.NINMCEmulation = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Memory Card Blocks Size
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINMCSize >= 6) GameConfig.NINMCSize = INHERIT;
|
2013-10-01 23:13:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Debug
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLDebug >= 3) GameConfig.DMLDebug = INHERIT;
|
|
|
|
}
|
2013-10-01 23:13:08 +02:00
|
|
|
|
|
|
|
//! Settings: NIN USB-HID Controller
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINUSBHID >= MAX_ON_OFF) GameConfig.NINUSBHID = INHERIT;
|
|
|
|
}
|
|
|
|
|
2014-08-02 18:53:56 +02:00
|
|
|
//! Settings: NIN MaxPads - Number of GameCube Controllers
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINMaxPads >= 5) GameConfig.NINMaxPads = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN LED Activity
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINLED >= MAX_ON_OFF) GameConfig.NINLED = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN OS Report
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINOSReport >= MAX_ON_OFF) GameConfig.NINOSReport = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Log to file
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.NINLog >= MAX_ON_OFF) GameConfig.NINLog = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: NIN Individual Loader path setting
|
|
|
|
else if (currentGCmode == GC_MODE_NINTENDONT && ret == ++Idx)
|
|
|
|
{
|
|
|
|
char entered[100];
|
|
|
|
snprintf(entered, sizeof(entered), GameConfig.NINLoaderPath.c_str());
|
|
|
|
|
|
|
|
HaltGui();
|
|
|
|
GuiWindow * parent = (GuiWindow *) parentElement;
|
|
|
|
if(parent) parent->SetState(STATE_DISABLED);
|
|
|
|
this->SetState(STATE_DEFAULT);
|
|
|
|
this->Remove(optionBrowser);
|
|
|
|
ResumeGui();
|
|
|
|
|
|
|
|
int result = BrowseDevice(entered, sizeof(entered), FB_DEFAULT, noFILES);
|
|
|
|
|
|
|
|
if(parent) parent->SetState(STATE_DEFAULT);
|
|
|
|
this->Append(optionBrowser);
|
|
|
|
|
|
|
|
if (result == 1)
|
|
|
|
{
|
|
|
|
if (entered[strlen(entered)-1] != '/')
|
|
|
|
strcat(entered, "/");
|
|
|
|
|
|
|
|
GameConfig.NINLoaderPath = entered;
|
|
|
|
WindowPrompt(tr( "Path Changed" ), 0, tr( "OK" ));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-01 23:13:08 +02:00
|
|
|
//! Settings: GameCube TITLE : Devolution
|
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
|
|
|
{
|
|
|
|
// This one is a category title
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DEVO MemCard emulation
|
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
2012-07-16 18:07:24 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOMCEmulation >= DEVO_MC_MAX_CHOICE) GameConfig.DEVOMCEmulation = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-10-14 18:27:01 +02:00
|
|
|
//! Settings: DEVO Widescreen Patch
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
2013-03-17 14:48:15 +01:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOWidescreen >= MAX_ON_OFF) GameConfig.DEVOWidescreen = INHERIT;
|
|
|
|
}
|
2012-10-14 18:27:01 +02:00
|
|
|
|
|
|
|
//! Settings: DEVO Activity LED
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
2012-10-14 18:27:01 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOActivityLED >= MAX_ON_OFF) GameConfig.DEVOActivityLED = INHERIT;
|
|
|
|
}
|
|
|
|
|
2013-04-14 23:02:09 +02:00
|
|
|
//! Settings: DEVO F-Zero AX unlock patch
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
2013-04-14 23:02:09 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOFZeroAX >= MAX_ON_OFF) GameConfig.DEVOFZeroAX = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DEVO Timer Fix
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
2013-04-14 23:02:09 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOTimerFix >= MAX_ON_OFF) GameConfig.DEVOTimerFix = INHERIT;
|
|
|
|
}
|
|
|
|
|
* Improved GameCube controller functions (patch by Dynamit)
R+Z=Screenshot, X=Gameinfo window, Y=Covers download
* Added Classic Controller and GameCube Controller support
in GameInfo window:
Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom
* Added Wifi6 and wifi10 pictures for GameInfo window.
(Thanks OriginalHamster)
* Added device priority selection for GameCube listing
in global Loader settings (SD->USB, or USB->SD)
* Added a "Use global" language setting for Gamecube games.
* Added support for USB devices with modified MBR's signature
to prevent WiiU's format message.
* Prevent Rockband cursor display on GameCube and WiiWare
games with "band" in the title (Crach bandicoot, Beach
Bandits, etc.)
* Added Dol's Video mode patcher in Loader/Game settings,
for games which couldn't be forced. (MadWorld, MotoGP08,
Mario Party 8, etc.)
♦ Region patch = Patches the dol's known video modes
to the region selected in "Video mode" setting,
but keep interlace/progressive references.
♦ ON = Patch all dol's known video modes to the one
selected in "Video mode" setting.
♦ ALL = Patch all dol's found video mode patterns
(even unknown video modes) to the one selected
in "Video mode" setting.
* DML: Updated DM(L) version detection up to v2.10
* DML: Automatically enable PADHook if Screenshot setting
is enabled
* DML: Fixed a bug where multiple video modes could be set
at the same time
* DEVO: Added a prompt if trying to launch a game from a
non FAT32 partition.
* DEVO: Added Direct Mapping Buttons setting (Devo r200+)
* DEVO: Added support for Language setting
* Language files updated: Chinese, French
2013-08-18 16:30:39 +02:00
|
|
|
//!Settings: DEVO Direct Button Mapping
|
2013-10-01 23:13:08 +02:00
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
* Improved GameCube controller functions (patch by Dynamit)
R+Z=Screenshot, X=Gameinfo window, Y=Covers download
* Added Classic Controller and GameCube Controller support
in GameInfo window:
Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom
* Added Wifi6 and wifi10 pictures for GameInfo window.
(Thanks OriginalHamster)
* Added device priority selection for GameCube listing
in global Loader settings (SD->USB, or USB->SD)
* Added a "Use global" language setting for Gamecube games.
* Added support for USB devices with modified MBR's signature
to prevent WiiU's format message.
* Prevent Rockband cursor display on GameCube and WiiWare
games with "band" in the title (Crach bandicoot, Beach
Bandits, etc.)
* Added Dol's Video mode patcher in Loader/Game settings,
for games which couldn't be forced. (MadWorld, MotoGP08,
Mario Party 8, etc.)
♦ Region patch = Patches the dol's known video modes
to the region selected in "Video mode" setting,
but keep interlace/progressive references.
♦ ON = Patch all dol's known video modes to the one
selected in "Video mode" setting.
♦ ALL = Patch all dol's found video mode patterns
(even unknown video modes) to the one selected
in "Video mode" setting.
* DML: Updated DM(L) version detection up to v2.10
* DML: Automatically enable PADHook if Screenshot setting
is enabled
* DML: Fixed a bug where multiple video modes could be set
at the same time
* DEVO: Added a prompt if trying to launch a game from a
non FAT32 partition.
* DEVO: Added Direct Mapping Buttons setting (Devo r200+)
* DEVO: Added support for Language setting
* Language files updated: Chinese, French
2013-08-18 16:30:39 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DEVODButtons >= MAX_ON_OFF) GameConfig.DEVODButtons = INHERIT;
|
|
|
|
}
|
|
|
|
|
2014-08-18 21:19:20 +02:00
|
|
|
//!Settings: DEVO Crop Overscan
|
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOCropOverscan >= MAX_ON_OFF) GameConfig.DEVOCropOverscan = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//!Settings: DEVO Disc Read Delay
|
|
|
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DEVODiscDelay >= MAX_ON_OFF) GameConfig.DEVODiscDelay = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
SetOptionValues();
|
|
|
|
|
|
|
|
return MENU_NONE;
|
|
|
|
}
|
|
|
|
|