Skip to content

Commit

Permalink
Merge pull request #10001 from LunaMoo/SavedataUpgrade
Browse files Browse the repository at this point in the history
Add ini-only "Savedata Upgrade" setting.
  • Loading branch information
hrydgard committed Oct 4, 2017
2 parents 206643b + 8826c03 commit bb1f651
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ static ConfigSetting systemParamSettings[] = {
#endif
ConfigSetting("WlanPowerSave", &g_Config.bWlanPowerSave, (bool) PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF, true, true),
ReportedConfigSetting("EncryptSave", &g_Config.bEncryptSave, true, true, true),
ConfigSetting("SavedataUpgrade", &g_Config.bSavedataUpgrade, false, true, false),

ConfigSetting(false),
};
Expand Down
1 change: 1 addition & 0 deletions Core/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ struct Config {
int iButtonPreference;
int iLockParentalLevel;
bool bEncryptSave;
bool bSavedataUpgrade;

// Networking
bool bEnableWlan;
Expand Down
6 changes: 6 additions & 0 deletions Core/Dialog/SavedataParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ void SavedataParam::LoadCryptedSave(SceUtilitySavedataParam *param, u8 *data, u8
} else {
WARN_LOG_REPORT(SCEUTILITY, "Savedata loading with detected hashmode %d instead of file's %d", decryptMode, prevCryptMode);
}
if (g_Config.bSavedataUpgrade) {
decryptMode = prevCryptMode;
I18NCategory *di = GetI18NCategory("Dialog");
host->NotifyUserMessage(di->T("When you save, it will not work on outdated PSP Firmware anymore"), 6.0f);
host->NotifyUserMessage(di->T("Old savedata detected"), 6.0f);
}
}
}

Expand Down

0 comments on commit bb1f651

Please sign in to comment.