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)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue