From 7ec884d4857ddd7f1917ca84b9662d68e401543d Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 9 Nov 2008 21:33:03 +0000 Subject: [PATCH] Windows - Added saveslot selected to messages --- desmume/src/windows/main.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 7c572020e..5e8a0e62e 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -657,14 +657,16 @@ void SaveStateMessages(int slotnum, int whichMessage) { MessageToDisplay.str(""); //Clear previous message displayMessageCounter = 120; - switch (whichMessage) //Switch statement used so that future case additions can be made + switch (whichMessage) { case 0: //State saved MessageToDisplay << "State " << slotnum << " saved."; break; - case 1: + case 1: //State loaded MessageToDisplay << "State " << slotnum << " loaded."; break; + case 2: //Save slot selected + MessageToDisplay << "State " << slotnum << " selected."; default: break; } @@ -1827,31 +1829,41 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM //Save slot selection case ACCEL_0: lastSaveState = 0; + SaveStateMessages(0,2); return 0; case ACCEL_1: lastSaveState = 1; + SaveStateMessages(1,2); return 0; case ACCEL_2: lastSaveState = 2; + SaveStateMessages(2,2); return 0; case ACCEL_3: lastSaveState = 3; + SaveStateMessages(3,2); return 0; case ACCEL_4: lastSaveState = 4; + SaveStateMessages(4,2); return 0; case ACCEL_5: lastSaveState = 5; + SaveStateMessages(5,2); case ACCEL_6: lastSaveState = 6; + SaveStateMessages(6,2); return 0; case ACCEL_7: lastSaveState = 7; + SaveStateMessages(7,2); case ACCEL_8: lastSaveState = 8; + SaveStateMessages(8,2); return 0; case ACCEL_9: lastSaveState = 9; + SaveStateMessages(9,2); return 0; case IDM_IMPORTBACKUPMEMORY: {