Cheat search possibilities window updates values now. But it flickers, so it needs to be optimized (it also updates while game is paused). Also, fixed up cheat search window a bit (thinner, says cheat search instead of dialog, has minimize button).
This commit is contained in:
parent
952dc6c637
commit
b578b61a21
|
@ -25,7 +25,7 @@
|
||||||
#include "debugger.h"
|
#include "debugger.h"
|
||||||
#include "../../fceu.h"
|
#include "../../fceu.h"
|
||||||
#include "../../cart.h"
|
#include "../../cart.h"
|
||||||
|
static HWND pwindow = 0;
|
||||||
HWND hCheat; //mbg merge 7/19/06 had to add
|
HWND hCheat; //mbg merge 7/19/06 had to add
|
||||||
int CheatWindow;
|
int CheatWindow;
|
||||||
int CheatStyle=1;
|
int CheatStyle=1;
|
||||||
|
@ -511,8 +511,22 @@ void ConfigCheats(HWND hParent) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SetFocus(hCheat);
|
SetFocus(hCheat);
|
||||||
|
|
||||||
|
if(!pwindow)
|
||||||
|
pwindow=CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB);
|
||||||
|
else
|
||||||
|
SetFocus(pwindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpdateCheatList()
|
||||||
|
{
|
||||||
|
if(!pwindow)
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
ShowResults(pwindow);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
BOOL CALLBACK GGConvCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
|
||||||
char str[100];
|
char str[100];
|
||||||
int i;
|
int i;
|
||||||
|
@ -720,3 +734,4 @@ void DoGGConv(){
|
||||||
hGGConv = CreateDialog(fceu_hInstance,"GGCONV",NULL,GGConvCallB);
|
hGGConv = CreateDialog(fceu_hInstance,"GGCONV",NULL,GGConvCallB);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,4 +8,5 @@ void RedoCheatsLB(HWND hwndDlg);
|
||||||
void ConfigCheats(HWND hParent);
|
void ConfigCheats(HWND hParent);
|
||||||
void DoGGConv();
|
void DoGGConv();
|
||||||
void SetGGConvFocus(int address,int compare);
|
void SetGGConvFocus(int address,int compare);
|
||||||
|
void UpdateCheatList();
|
||||||
//void ConfigAddCheat(HWND wnd); //bbit edited:commented out this line
|
//void ConfigAddCheat(HWND wnd); //bbit edited:commented out this line
|
||||||
|
|
|
@ -759,6 +759,7 @@ void _updateWindow()
|
||||||
UpdateLogWindow();
|
UpdateLogWindow();
|
||||||
UpdateMemWatch();
|
UpdateMemWatch();
|
||||||
NTViewDoBlit(0);
|
NTViewDoBlit(0);
|
||||||
|
UpdateCheatList();
|
||||||
}
|
}
|
||||||
|
|
||||||
//void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
|
//void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
|
||||||
|
|
|
@ -8,12 +8,6 @@
|
||||||
// Generated from the TEXTINCLUDE 2 resource.
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
//
|
//
|
||||||
#include "afxres.h"
|
#include "afxres.h"
|
||||||
|
|
||||||
// Workaround for windres from binutils 1.18:
|
|
||||||
#ifndef LVS_OWNERDATA
|
|
||||||
#define LVS_OWNERDATA 0x1000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
|
@ -23,6 +17,7 @@
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
|
#pragma code_page(1252)
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1394,6 +1389,7 @@ END
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
||||||
|
#pragma code_page(1252)
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1401,9 +1397,9 @@ LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
||||||
// Dialog
|
// Dialog
|
||||||
//
|
//
|
||||||
|
|
||||||
CHEATCONSOLE DIALOGEX 0, 0, 389, 178
|
CHEATCONSOLE DIALOGEX 0, 0, 384, 178
|
||||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "Dialog"
|
CAPTION "Cheat Search"
|
||||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||||
BEGIN
|
BEGIN
|
||||||
GROUPBOX "Active Cheats",201,3,1,133,168,WS_TABSTOP
|
GROUPBOX "Active Cheats",201,3,1,133,168,WS_TABSTOP
|
||||||
|
@ -1450,7 +1446,7 @@ BEGIN
|
||||||
"CHEATCONSOLE", DIALOG
|
"CHEATCONSOLE", DIALOG
|
||||||
BEGIN
|
BEGIN
|
||||||
LEFTMARGIN, 7
|
LEFTMARGIN, 7
|
||||||
RIGHTMARGIN, 382
|
RIGHTMARGIN, 377
|
||||||
TOPMARGIN, 7
|
TOPMARGIN, 7
|
||||||
BOTTOMMARGIN, 171
|
BOTTOMMARGIN, 171
|
||||||
END
|
END
|
||||||
|
@ -1467,6 +1463,7 @@ END
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
#pragma code_page(1252)
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1627,7 +1624,6 @@ END
|
||||||
// Generated from the TEXTINCLUDE 3 resource.
|
// Generated from the TEXTINCLUDE 3 resource.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#endif // not APSTUDIO_INVOKED
|
#endif // not APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue