diff --git a/win32/wlanguage.h b/win32/wlanguage.h index 4a37ebb7..823e6ee6 100644 --- a/win32/wlanguage.h +++ b/win32/wlanguage.h @@ -364,8 +364,7 @@ Nintendo is a trademark.") // Save Messages -#define FREEZE_INFO_SET_SLOT_N "Set save slot %03d [%s]" -#define FREEZE_INFO_SET_BANK_N "Set save bank %03d" +#define FREEZE_INFO_SET_SLOT_N "Set save slot %03d, bank %03d [%s]" // AVI Messages diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index e0bb5bdd..1f8f3451 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -747,7 +747,7 @@ static void ShowStatusSlotInfo() if (stat(filename, &stats) == 0) exists = true; - sprintf(str, FREEZE_INFO_SET_SLOT_N, GUI.CurrentSaveSlot, exists ? "used" : "empty"); + sprintf(str, FREEZE_INFO_SET_SLOT_N, GUI.CurrentSaveSlot, GUI.CurrentSaveBank, exists ? "used" : "empty"); S9xSetInfoString(str); } @@ -885,13 +885,13 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam) if(wParam == CustomKeys.SlotSave.key && modifiers == CustomKeys.SlotSave.modifiers) { - FreezeUnfreezeSlot (GUI.CurrentSaveSlot, true); + FreezeUnfreezeSlot (GUI.CurrentSaveBank * SAVE_SLOTS_PER_BANK + GUI.CurrentSaveSlot, true); hitHotKey = true; } if(wParam == CustomKeys.SlotLoad.key && modifiers == CustomKeys.SlotLoad.modifiers) { - FreezeUnfreezeSlot (GUI.CurrentSaveSlot, false); + FreezeUnfreezeSlot (GUI.CurrentSaveBank * SAVE_SLOTS_PER_BANK + GUI.CurrentSaveSlot, false); hitHotKey = true; } if(wParam == CustomKeys.DialogSave.key @@ -935,9 +935,7 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam) if (GUI.CurrentSaveBank > LAST_SAVE_BANK) GUI.CurrentSaveBank = 0; - static char str[64]; - sprintf(str, FREEZE_INFO_SET_BANK_N, GUI.CurrentSaveBank); - S9xSetInfoString(str); + ShowStatusSlotInfo(); hitHotKey = true; } @@ -948,9 +946,7 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam) if (GUI.CurrentSaveBank < 0) GUI.CurrentSaveBank = 9; - static char str[64]; - sprintf(str, FREEZE_INFO_SET_BANK_N, GUI.CurrentSaveBank); - S9xSetInfoString(str); + ShowStatusSlotInfo(); hitHotKey = true; }