From 3d244249d6b2e9385c713d91b4699c9b4b924d35 Mon Sep 17 00:00:00 2001 From: ugetab Date: Sun, 23 May 2010 04:34:13 +0000 Subject: [PATCH] Made cheat menu's Pause When Active effect immediate --- changelog.txt | 1 + src/drivers/win/cheat.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/changelog.txt b/changelog.txt index a90ffae9..56c1baaa 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,4 @@ +22-may-2010 - ugetab - Win32 - Made cheat menu's Pause When Active effect immediate. 22-may-2010 - ugetab - Win32 - Enabled multi-select for Cheat menu to allow multiple toggles and deletes. 20-may-2010 - ugetab - Added NTSC 2x scalar option with some CFG config options of it's own 20-may-2010 - Cah4e3 - Win32 - CDLogger - fixed bug preventing correct interrupt vectors from logging diff --git a/src/drivers/win/cheat.cpp b/src/drivers/win/cheat.cpp index 68005dfd..8acb443e 100644 --- a/src/drivers/win/cheat.cpp +++ b/src/drivers/win/cheat.cpp @@ -393,6 +393,13 @@ BOOL CALLBACK CheatConsoleCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l break; case IDC_CHEAT_PAUSEWHENACTIVE: pauseWhileActive ^= 1; + if ((bool)EmulationPaused != pauseWhileActive) + { + EmulationPaused = (pauseWhileActive ? 1 : 0); + wasPausedByCheats = pauseWhileActive; + if (EmulationPaused) + FCEU_printf("Emulation paused: %d\n", EmulationPaused); + } break; case IDC_BTN_CHEAT_ADD: GetDlgItemText(hwndDlg,IDC_CHEAT_ADDR,str,5);