From f1497e89143c22d914f30f1579fbc0e9d3eff63c Mon Sep 17 00:00:00 2001 From: mauzus Date: Tue, 13 May 2008 04:24:53 +0000 Subject: [PATCH] bugfix: [1959907] Cheats Menu - allow it to be open while using emulator --- src/drivers/win/cheat.cpp | 5 ++++- src/drivers/win/res.rc | Bin 145610 -> 145636 bytes 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drivers/win/cheat.cpp b/src/drivers/win/cheat.cpp index 3691d820..8986f601 100644 --- a/src/drivers/win/cheat.cpp +++ b/src/drivers/win/cheat.cpp @@ -26,7 +26,8 @@ #include "..\..\cart.h" HWND hCheat; //mbg merge 7/19/06 had to add -int CheatWindow,CheatStyle; //mbg merge 7/19/06 had to add +int CheatWindow; +int CheatStyle=1; #define GGLISTSIZE 128 //hopefully this is enough for all cases @@ -499,6 +500,8 @@ void ConfigCheats(HWND hParent) { if (CheatStyle) hCheat = CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB); else DialogBox(fceu_hInstance,"CHEATCONSOLE",hParent,CheatConsoleCallB); } + else + SetFocus(hCheat); } BOOL CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { diff --git a/src/drivers/win/res.rc b/src/drivers/win/res.rc index 288c22d4fe9796f5e3e394c409d19b30e55620fa..2f918442b8df484df08170151881687c0f6ecc03 100644 GIT binary patch delta 21 dcmX^0k>klnj)pCa%RWp#;1jd`#RtYm?f{4z3?Kji delta 21 dcmaFzk>k`yj)pCa%RWqg=VrJ4-v`EL?f{8<3`76`