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" )
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char * VideoModeText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "System Default" ),
|
|
|
|
trNOOP( "Disc Default" ),
|
|
|
|
trNOOP( "Force PAL50" ),
|
|
|
|
trNOOP( "Force PAL60" ),
|
|
|
|
trNOOP( "Force NTSC" ),
|
|
|
|
trNOOP( "Region Patch" ),
|
|
|
|
trNOOP( "Force PAL480p" ),
|
|
|
|
trNOOP( "Force NTSC480p" ),
|
|
|
|
};
|
|
|
|
|
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" ),
|
|
|
|
};
|
|
|
|
|
2012-07-22 22:30:59 +02:00
|
|
|
static const char * DMLVideoText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "DML Auto" ),
|
|
|
|
trNOOP( "Use Game Settings" ),
|
|
|
|
trNOOP( "DML None" ),
|
|
|
|
};
|
|
|
|
|
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" ),
|
|
|
|
};
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
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" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Video Mode" ));
|
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( "Ocarina" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Parental Control" ));
|
2012-07-16 18:07:24 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "GameCube Mode" ));
|
2012-08-24 18:55:49 +02:00
|
|
|
if(IosLoader::GetMIOSInfo() >DEFAULT_MIOS)
|
|
|
|
{
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML Video Mode" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML Progressive Patch" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML NMM Mode" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML LED Activity" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML PAD Hook" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML No Disc" ));
|
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2)
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML No Disc+" ));
|
|
|
|
if(IosLoader::GetDMLVersion() > DML_VERSION_DM_2_1)
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML Force Widescreen" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML Japanese Patch" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "DML Debug" ));
|
|
|
|
}
|
2012-07-16 18:07:24 +02:00
|
|
|
Options->SetName(Idx++, "%s", tr( "DEVO MemCard Emulation" ));
|
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));
|
|
|
|
|
|
|
|
//! Settings: Video Mode
|
|
|
|
if(GameConfig.video == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(VideoModeText[GameConfig.video]));
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: Game Language
|
|
|
|
if(GameConfig.language == INHERIT)
|
|
|
|
GameConfig.language = GC_LANG_CONSOLE_DEFAULT;
|
|
|
|
Options->SetValue(Idx++, "%s", tr(LanguageText[GameConfig.language]));
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: Ocarina
|
|
|
|
if(GameConfig.ocarina == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.ocarina]));
|
|
|
|
|
|
|
|
//! 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
|
|
|
|
|
|
|
if(IosLoader::GetMIOSInfo() >DEFAULT_MIOS)
|
|
|
|
{
|
|
|
|
//! Settings: DML Video Mode
|
|
|
|
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
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Progressive Patch
|
|
|
|
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
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML NMM Mode
|
|
|
|
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
|
|
|
|
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 No Disc
|
|
|
|
if(GameConfig.DMLNoDisc == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLNoDisc]));
|
2012-05-06 12:59:58 +02:00
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Extended No Disc
|
|
|
|
if(IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2)
|
|
|
|
{
|
|
|
|
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-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML 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: 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]));
|
2012-07-22 19:08:54 +02:00
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Debug
|
|
|
|
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]));
|
2012-07-22 19:08:54 +02:00
|
|
|
}
|
2012-08-24 18:55:49 +02:00
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: DEVO Memory Card Emulation
|
|
|
|
if(GameConfig.DEVOMCEmulation == INHERIT)
|
|
|
|
Options->SetValue(Idx++, tr("Use global"));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, "%s", tr(DEVOMCText[GameConfig.DEVOMCEmulation]));
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Video Mode
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.video >= VIDEO_MODE_MAX) GameConfig.video = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: Game Language
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.language >= GC_MAX_LANGUAGE) GameConfig.language = GC_ENGLISH;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: Ocarina
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.ocarina >= MAX_ON_OFF) GameConfig.ocarina = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! 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;
|
|
|
|
}
|
|
|
|
|
2012-07-22 22:30:59 +02:00
|
|
|
//! Settings: DML Video Mode
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-07-22 22:30:59 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLVideo >= DML_VIDEO_MAX_CHOICE) GameConfig.DMLVideo = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: DML Progressive Patch
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (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
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DML NMM Mode
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLNMM >= 3) GameConfig.DMLNMM = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DML LED Activity
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (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
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLPADHOOK >= MAX_ON_OFF) GameConfig.DMLPADHOOK = INHERIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: DML No Disc
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLNoDisc >= MAX_ON_OFF) GameConfig.DMLNoDisc = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-07-22 19:08:54 +02:00
|
|
|
//! Settings: DML Extended No Disc
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_2_2 && ret == ++Idx)
|
2012-07-22 19:08:54 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLNoDisc2 >= MAX_ON_OFF) GameConfig.DMLNoDisc2 = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-07-19 22:13:39 +02:00
|
|
|
//! Settings: DML Force Widescreen
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && IosLoader::GetDMLVersion() >= DML_VERSION_DM_2_1 && ret == ++Idx)
|
2012-07-19 22:13:39 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLWidescreen >= MAX_ON_OFF) GameConfig.DMLWidescreen = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-08-24 18:55:49 +02:00
|
|
|
//! Settings: DML Japanese Patch
|
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DMLJPNPatch >= 3) GameConfig.DMLJPNPatch = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
//! Settings: DML Debug
|
2012-08-24 18:55:49 +02:00
|
|
|
else if (IosLoader::GetMIOSInfo() > DEFAULT_MIOS && ret == ++Idx)
|
2012-05-06 12:59:58 +02:00
|
|
|
{
|
|
|
|
if (++GameConfig.DMLDebug >= 3) GameConfig.DMLDebug = INHERIT;
|
|
|
|
}
|
2012-08-24 18:55:49 +02:00
|
|
|
|
2012-07-16 18:07:24 +02:00
|
|
|
//! Settings: DEVO Memory Card Emulation
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
if (++GameConfig.DEVOMCEmulation >= DEVO_MC_MAX_CHOICE) GameConfig.DEVOMCEmulation = INHERIT;
|
|
|
|
}
|
|
|
|
|
2012-05-06 12:59:58 +02:00
|
|
|
SetOptionValues();
|
|
|
|
|
|
|
|
return MENU_NONE;
|
|
|
|
}
|
|
|
|
|