yugioh save fix tool

This commit is contained in:
sum2012 2018-11-26 21:34:00 +08:00
parent 04f57bd49b
commit ee34a73e80
4 changed files with 13 additions and 2 deletions

View File

@ -838,6 +838,7 @@ static ConfigSetting systemParamSettings[] = {
ConfigSetting("proAdhocServer", &g_Config.proAdhocServer, "black-seraph.com", true, true),
ConfigSetting("MacAddress", &g_Config.sMACAddress, "", true, true),
ConfigSetting("PortOffset", &g_Config.iPortOffset, 0, true, true),
ConfigSetting("SavedataCorrectionForyugioh", &g_Config.bSavedataCorrectionForyugioh, false, true, true),
ReportedConfigSetting("Language", &g_Config.iLanguage, &DefaultSystemParamLanguage, true, true),
ConfigSetting("TimeFormat", &g_Config.iTimeFormat, PSP_SYSTEMPARAM_TIME_FORMAT_24HR, true, true),
ConfigSetting("DateFormat", &g_Config.iDateFormat, PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD, true, true),

View File

@ -90,6 +90,7 @@ public:
bool bCheckForNewVersion;
bool bForceLagSync;
bool bFuncReplacements;
bool bSavedataCorrectionForyugioh;
bool bHideSlowWarnings;
bool bHideStateWarnings;
bool bPreloadFunctions;

View File

@ -185,8 +185,15 @@ static int sceUtilitySavedataInitStart(u32 paramAddr)
{
if (currentDialogActive && currentDialogType != UTILITY_DIALOG_SAVEDATA)
{
WARN_LOG(SCEUTILITY, "sceUtilitySavedataInitStart(%08x): wrong dialog type", paramAddr);
return SCE_ERROR_UTILITY_WRONG_TYPE;
if (g_Config.bSavedataCorrectionForyugioh)
{
WARN_LOG(SCEUTILITY, "Savedata Correction");
g_Config.bSavedataCorrectionForyugioh = false;
}
else {
WARN_LOG(SCEUTILITY, "sceUtilitySavedataInitStart(%08x): wrong dialog type", paramAddr);
return SCE_ERROR_UTILITY_WRONG_TYPE;
}
}
oldStatus = 100;

View File

@ -671,6 +671,8 @@ void GameSettingsScreen::CreateViews() {
tools->Add(new ItemHeader(ms->T("Tools")));
// These were moved here so use the wrong translation objects, to avoid having to change all inis... This isn't a sustainable situation :P
tools->Add(new Choice(sa->T("Savedata Manager")))->OnClick.Handle(this, &GameSettingsScreen::OnSavedataManager);
// issue #7914
tools->Add(new CheckBox(&g_Config.bSavedataCorrectionForyugioh, sa->T("Savedata correction for yugioh")));
tools->Add(new Choice(dev->T("System Information")))->OnClick.Handle(this, &GameSettingsScreen::OnSysInfo);
tools->Add(new Choice(sy->T("Developer Tools")))->OnClick.Handle(this, &GameSettingsScreen::OnDeveloperTools);
tools->Add(new Choice(ri->T("Remote disc streaming")))->OnClick.Handle(this, &GameSettingsScreen::OnRemoteISO);