mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
SaveState: Clean up some constant usage.
This commit is contained in:
1 parent
2f96dda185
commit
ef566a3adf
5 files changed
+9
-9
No files matched your search
@@ -1139,8 +1139,8 @@ namespace MainWindow {
|
||||
if (g_Config.iCurrentStateSlot < 0)
|
||||
g_Config.iCurrentStateSlot = 0;
|
||||
|
||||
else if (g_Config.iCurrentStateSlot >= SaveState::SAVESTATESLOTS)
|
||||
g_Config.iCurrentStateSlot = SaveState::SAVESTATESLOTS - 1;
|
||||
else if (g_Config.iCurrentStateSlot >= SaveState::NUM_SLOTS)
|
||||
g_Config.iCurrentStateSlot = SaveState::NUM_SLOTS - 1;
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(savestateSlot); i++) {
|
||||
CheckMenuItem(menu, savestateSlot[i], MF_BYCOMMAND | ((i == g_Config.iCurrentStateSlot) ? MF_CHECKED : MF_UNCHECKED));
|
||||
|
||||
Reference in new issue
Block a user