mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Add per-game return to for Devolution
This commit is contained in:
parent
ab94417c1f
commit
4406ae25bd
@ -228,6 +228,7 @@ void GCGameLoadSM::SetOptionNames()
|
|||||||
Options->SetName(Idx++, "%s", tr( "Crop Overscan" ));
|
Options->SetName(Idx++, "%s", tr( "Crop Overscan" ));
|
||||||
Options->SetName(Idx++, "%s", tr( "Disc Read Delay" ));
|
Options->SetName(Idx++, "%s", tr( "Disc Read Delay" ));
|
||||||
Options->SetName(Idx++, "%s", tr( "Progressive Patch" ));
|
Options->SetName(Idx++, "%s", tr( "Progressive Patch" ));
|
||||||
|
Options->SetName(Idx++, "%s", tr( "Return To" ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -557,12 +558,26 @@ void GCGameLoadSM::SetOptionValues()
|
|||||||
else
|
else
|
||||||
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVODiscDelay]));
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DEVODiscDelay]));
|
||||||
|
|
||||||
//! Settings: DML + NIN + Devo Progressive Patch
|
//! Settings: DML + NIN + DEVO Progressive Patch
|
||||||
if(GameConfig.DMLProgPatch == INHERIT)
|
if(GameConfig.DMLProgPatch == INHERIT)
|
||||||
Options->SetValue(Idx++, tr("Use global"));
|
Options->SetValue(Idx++, tr("Use global"));
|
||||||
else
|
else
|
||||||
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLProgPatch]));
|
Options->SetValue(Idx++, "%s", tr(OnOffText[GameConfig.DMLProgPatch]));
|
||||||
|
|
||||||
|
//! Settings: DEVO Return To
|
||||||
|
if(GameConfig.returnTo)
|
||||||
|
{
|
||||||
|
const char* TitleName = NULL;
|
||||||
|
u64 tid = NandTitles.FindU32(Settings.returnTo);
|
||||||
|
if (tid > 0)
|
||||||
|
TitleName = NandTitles.NameOf(tid);
|
||||||
|
Options->SetValue(Idx++, "%s", TitleName ? TitleName : strlen(Settings.returnTo) > 0 ?
|
||||||
|
Settings.returnTo : tr( OnOffText[0] ));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Options->SetValue(Idx++, "%s", tr( OnOffText[0] ));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -963,6 +978,12 @@ int GCGameLoadSM::GetMenuInternal()
|
|||||||
if (++GameConfig.DMLProgPatch >= MAX_ON_OFF) GameConfig.DMLProgPatch = INHERIT;
|
if (++GameConfig.DMLProgPatch >= MAX_ON_OFF) GameConfig.DMLProgPatch = INHERIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! Settings: DEVO Return To
|
||||||
|
else if (currentGCmode == GC_MODE_DEVOLUTION && ret == ++Idx)
|
||||||
|
{
|
||||||
|
if (++GameConfig.returnTo >= MAX_ON_OFF) GameConfig.returnTo = 0;
|
||||||
|
}
|
||||||
|
|
||||||
SetOptionValues();
|
SetOptionValues();
|
||||||
|
|
||||||
return MENU_NONE;
|
return MENU_NONE;
|
||||||
|
@ -820,7 +820,7 @@ int GameBooter::BootDevolution(struct discHdr *gameHdr)
|
|||||||
u8 devoDButtonsChoice = game_cfg->DEVODButtons == INHERIT ? Settings.DEVODButtons : game_cfg->DEVODButtons;
|
u8 devoDButtonsChoice = game_cfg->DEVODButtons == INHERIT ? Settings.DEVODButtons : game_cfg->DEVODButtons;
|
||||||
u8 devoCropOverscanChoice = game_cfg->DEVOCropOverscan == INHERIT ? Settings.DEVOCropOverscan : game_cfg->DEVOCropOverscan;
|
u8 devoCropOverscanChoice = game_cfg->DEVOCropOverscan == INHERIT ? Settings.DEVOCropOverscan : game_cfg->DEVOCropOverscan;
|
||||||
u8 devoDiscDelayChoice = game_cfg->DEVODiscDelay == INHERIT ? Settings.DEVODiscDelay : game_cfg->DEVODiscDelay;
|
u8 devoDiscDelayChoice = game_cfg->DEVODiscDelay == INHERIT ? Settings.DEVODiscDelay : game_cfg->DEVODiscDelay;
|
||||||
u64 returnToChoice = strlen(Settings.returnTo) > 0 ? NandTitles.FindU32(Settings.returnTo) : 0;
|
u64 returnToChoice = strlen(Settings.returnTo) > 0 ? (game_cfg->returnTo ? NandTitles.FindU32(Settings.returnTo) : 0) : 0;
|
||||||
|
|
||||||
if(gameHdr->type == TYPE_GAME_GC_DISC)
|
if(gameHdr->type == TYPE_GAME_GC_DISC)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user