mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
RetroAchievements: Finish the Challenge->Hardcore rename
This commit is contained in:
1 parent
cd24f4e5b5
commit
aed8bc6d7b
11 files changed
+37
-37
No files matched your search
+11
-11
@@ -74,9 +74,9 @@ namespace MainWindow {
|
||||
|
||||
bool loadStateEnableBool = menuEnableBool;
|
||||
bool saveStateEnableBool = menuEnableBool;
|
||||
if (Achievements::ChallengeModeActive()) {
|
||||
if (Achievements::HardcoreModeActive()) {
|
||||
loadStateEnableBool = false;
|
||||
if (!g_Config.bAchievementsSaveStateInChallengeMode) {
|
||||
if (!g_Config.bAchievementsSaveStateInHardcoreMode) {
|
||||
saveStateEnableBool = false;
|
||||
}
|
||||
}
|
||||
@@ -518,7 +518,7 @@ namespace MainWindow {
|
||||
}
|
||||
break;
|
||||
case ID_FILE_LOADSTATEFILE:
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(false)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(false)) {
|
||||
if (W32Util::BrowseForFileName(true, hWnd, L"Load state", 0, L"Save States (*.ppst)\0*.ppst\0All files\0*.*\0\0", L"ppst", fn)) {
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
SaveState::Load(Path(fn), -1, SaveStateActionFinished);
|
||||
@@ -526,7 +526,7 @@ namespace MainWindow {
|
||||
}
|
||||
break;
|
||||
case ID_FILE_SAVESTATEFILE:
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
if (W32Util::BrowseForFileName(false, hWnd, L"Save state", 0, L"Save States (*.ppst)\0*.ppst\0All files\0*.*\0\0", L"ppst", fn)) {
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
SaveState::Save(Path(fn), -1, SaveStateActionFinished);
|
||||
@@ -536,7 +536,7 @@ namespace MainWindow {
|
||||
|
||||
case ID_FILE_SAVESTATE_NEXT_SLOT:
|
||||
{
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
SaveState::NextSlot();
|
||||
System_PostUIMessage(UIMessage::SAVESTATE_DISPLAY_SLOT);
|
||||
}
|
||||
@@ -545,7 +545,7 @@ namespace MainWindow {
|
||||
|
||||
case ID_FILE_SAVESTATE_NEXT_SLOT_HC:
|
||||
{
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
if (!KeyMap::PspButtonHasMappings(VIRTKEY_NEXT_SLOT)) {
|
||||
SaveState::NextSlot();
|
||||
System_PostUIMessage(UIMessage::SAVESTATE_DISPLAY_SLOT);
|
||||
@@ -559,13 +559,13 @@ namespace MainWindow {
|
||||
case ID_FILE_SAVESTATE_SLOT_3:
|
||||
case ID_FILE_SAVESTATE_SLOT_4:
|
||||
case ID_FILE_SAVESTATE_SLOT_5:
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
g_Config.iCurrentStateSlot = wmId - ID_FILE_SAVESTATE_SLOT_1;
|
||||
}
|
||||
break;
|
||||
|
||||
case ID_FILE_QUICKLOADSTATE:
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(false)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(false)) {
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
SaveState::LoadSlot(PSP_CoreParameter().fileToStart, g_Config.iCurrentStateSlot, SaveStateActionFinished);
|
||||
}
|
||||
@@ -573,7 +573,7 @@ namespace MainWindow {
|
||||
|
||||
case ID_FILE_QUICKLOADSTATE_HC:
|
||||
{
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(false)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(false)) {
|
||||
if (!KeyMap::PspButtonHasMappings(VIRTKEY_LOAD_STATE)) {
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
SaveState::LoadSlot(PSP_CoreParameter().fileToStart, g_Config.iCurrentStateSlot, SaveStateActionFinished);
|
||||
@@ -583,7 +583,7 @@ namespace MainWindow {
|
||||
}
|
||||
case ID_FILE_QUICKSAVESTATE:
|
||||
{
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
SaveState::SaveSlot(PSP_CoreParameter().fileToStart, g_Config.iCurrentStateSlot, SaveStateActionFinished);
|
||||
}
|
||||
@@ -592,7 +592,7 @@ namespace MainWindow {
|
||||
|
||||
case ID_FILE_QUICKSAVESTATE_HC:
|
||||
{
|
||||
if (!Achievements::WarnUserIfChallengeModeActive(true)) {
|
||||
if (!Achievements::WarnUserIfHardcoreModeActive(true)) {
|
||||
if (!KeyMap::PspButtonHasMappings(VIRTKEY_SAVE_STATE))
|
||||
{
|
||||
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
|
||||
Reference in new issue
Block a user