Windows - Added saveslot selected to messages
This commit is contained in:
parent
c521035667
commit
7ec884d485
|
@ -657,14 +657,16 @@ void SaveStateMessages(int slotnum, int whichMessage)
|
||||||
{
|
{
|
||||||
MessageToDisplay.str(""); //Clear previous message
|
MessageToDisplay.str(""); //Clear previous message
|
||||||
displayMessageCounter = 120;
|
displayMessageCounter = 120;
|
||||||
switch (whichMessage) //Switch statement used so that future case additions can be made
|
switch (whichMessage)
|
||||||
{
|
{
|
||||||
case 0: //State saved
|
case 0: //State saved
|
||||||
MessageToDisplay << "State " << slotnum << " saved.";
|
MessageToDisplay << "State " << slotnum << " saved.";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1: //State loaded
|
||||||
MessageToDisplay << "State " << slotnum << " loaded.";
|
MessageToDisplay << "State " << slotnum << " loaded.";
|
||||||
break;
|
break;
|
||||||
|
case 2: //Save slot selected
|
||||||
|
MessageToDisplay << "State " << slotnum << " selected.";
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1827,31 +1829,41 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
//Save slot selection
|
//Save slot selection
|
||||||
case ACCEL_0:
|
case ACCEL_0:
|
||||||
lastSaveState = 0;
|
lastSaveState = 0;
|
||||||
|
SaveStateMessages(0,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_1:
|
case ACCEL_1:
|
||||||
lastSaveState = 1;
|
lastSaveState = 1;
|
||||||
|
SaveStateMessages(1,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_2:
|
case ACCEL_2:
|
||||||
lastSaveState = 2;
|
lastSaveState = 2;
|
||||||
|
SaveStateMessages(2,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_3:
|
case ACCEL_3:
|
||||||
lastSaveState = 3;
|
lastSaveState = 3;
|
||||||
|
SaveStateMessages(3,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_4:
|
case ACCEL_4:
|
||||||
lastSaveState = 4;
|
lastSaveState = 4;
|
||||||
|
SaveStateMessages(4,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_5:
|
case ACCEL_5:
|
||||||
lastSaveState = 5;
|
lastSaveState = 5;
|
||||||
|
SaveStateMessages(5,2);
|
||||||
case ACCEL_6:
|
case ACCEL_6:
|
||||||
lastSaveState = 6;
|
lastSaveState = 6;
|
||||||
|
SaveStateMessages(6,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_7:
|
case ACCEL_7:
|
||||||
lastSaveState = 7;
|
lastSaveState = 7;
|
||||||
|
SaveStateMessages(7,2);
|
||||||
case ACCEL_8:
|
case ACCEL_8:
|
||||||
lastSaveState = 8;
|
lastSaveState = 8;
|
||||||
|
SaveStateMessages(8,2);
|
||||||
return 0;
|
return 0;
|
||||||
case ACCEL_9:
|
case ACCEL_9:
|
||||||
lastSaveState = 9;
|
lastSaveState = 9;
|
||||||
|
SaveStateMessages(9,2);
|
||||||
return 0;
|
return 0;
|
||||||
case IDM_IMPORTBACKUPMEMORY:
|
case IDM_IMPORTBACKUPMEMORY:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue