Small feature: add a possibility to make "Emulation paused/unpaused" messages
optional when calling NDS_Pause()/NDS_Unpause() by adding them a parameter defaulted to true. Shouldn't break anything.
This commit is contained in:
parent
f7799d4b2e
commit
86bd06801f
|
@ -1455,7 +1455,7 @@ DWORD WINAPI run()
|
|||
return 1;
|
||||
}
|
||||
|
||||
void NDS_Pause()
|
||||
void NDS_Pause(bool showMsg)
|
||||
{
|
||||
if (!paused)
|
||||
{
|
||||
|
@ -1463,11 +1463,11 @@ void NDS_Pause()
|
|||
paused = TRUE;
|
||||
SPU_Pause(1);
|
||||
while (!paused) {}
|
||||
INFO("Emulation paused\n");
|
||||
if (showMsg) INFO("Emulation paused\n");
|
||||
}
|
||||
}
|
||||
|
||||
void NDS_UnPause()
|
||||
void NDS_UnPause(bool showMsg)
|
||||
{
|
||||
if (romloaded && paused)
|
||||
{
|
||||
|
@ -1475,7 +1475,7 @@ void NDS_UnPause()
|
|||
pausedByMinimize = FALSE;
|
||||
execute = TRUE;
|
||||
SPU_Pause(0);
|
||||
INFO("Emulation unpaused\n");
|
||||
if (showMsg) INFO("Emulation unpaused\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
extern WINCLASS *MainWindow;
|
||||
|
||||
extern volatile bool execute, paused;
|
||||
void NDS_Pause();
|
||||
void NDS_UnPause();
|
||||
void NDS_Pause(bool showMsg = true);
|
||||
void NDS_UnPause(bool showMsg = true);
|
||||
void LoadSaveStateInfo();
|
||||
void Display();
|
||||
void Pause();
|
||||
|
|
Loading…
Reference in New Issue