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:
adelikat 2008-05-27 15:30:15 +00:00
parent 952dc6c637
commit b578b61a21
4 changed files with 1647 additions and 1634 deletions

View File

@ -25,7 +25,7 @@
#include "debugger.h"
#include "../../fceu.h"
#include "../../cart.h"
static HWND pwindow = 0;
HWND hCheat; //mbg merge 7/19/06 had to add
int CheatWindow;
int CheatStyle=1;
@ -511,8 +511,22 @@ void ConfigCheats(HWND hParent) {
}
else
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) {
char str[100];
int i;
@ -720,3 +734,4 @@ void DoGGConv(){
hGGConv = CreateDialog(fceu_hInstance,"GGCONV",NULL,GGConvCallB);
return;
}

View File

@ -8,4 +8,5 @@ void RedoCheatsLB(HWND hwndDlg);
void ConfigCheats(HWND hParent);
void DoGGConv();
void SetGGConvFocus(int address,int compare);
void UpdateCheatList();
//void ConfigAddCheat(HWND wnd); //bbit edited:commented out this line

View File

@ -759,6 +759,7 @@ void _updateWindow()
UpdateLogWindow();
UpdateMemWatch();
NTViewDoBlit(0);
UpdateCheatList();
}
//void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)

File diff suppressed because it is too large Load Diff