AxibugEmuOnline/virtuanessrc097-master/CheatDlg.h

176 lines
6.9 KiB
C
Raw Normal View History

<EFBFBD><EFBFBD>//
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
//
#ifndef __CCHEATDLG_INCLUDED__
#define __CCHEATDLG_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <list>
#include <vector>
#include <string>
using namespace std;
#include "Wnd.h"
#include "cheat.h"
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
class CSearchDlg : public CWnd
{
public:
// Override from CWnd
BOOL Create( HWND hWndParent );
void Destroy();
protected:
void OnListUpdate();
// Utils
DWORD GetNesMemory( INT length, DWORD addr );
DWORD GetSearchMemory( INT length, DWORD addr );
DWORD GetSearchMemoryOld( INT length, DWORD addr );
BOOL CompareData( INT type, DWORD dataA, DWORD dataB );
BOOL CompareRange( INT length, DWORD dataA, DWORD dataB, DWORD range );
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnActivate( DLGMSGPARAM );
DLGMSG OnClose( DLGMSGPARAM );
DLGMSG OnContextMenu( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnRadixCommand( DLGCMDPARAM );
DLGCMD OnLengthCommand( DLGCMDPARAM );
DLGCMD OnStart( DLGCMDPARAM );
DLGCMD OnUpdate( DLGCMDPARAM );
DLGCMD OnUndo( DLGCMDPARAM );
DLGCMD OnSearchCommand( DLGCMDPARAM );
DLGCMD OnSearchData( DLGCMDPARAM );
DLGCMD OnWriteData( DLGCMDPARAM );
DLGCMD OnCodeAppend( DLGCMDPARAM );
//
DLGNOTIFY OnDoubleClickListView( DLGNOTIFYPARAM );
private:
HMENU m_hMenu;
HMENU m_hSubMenu;
BOOL m_bShortCutDisable;
WORD m_Address;
INT m_nRadix;
INT m_nLength;
struct RESULT {
BYTE RAM_N[0x0800]; // RAM New value
BYTE RAM_O[0x0800]; // RAM Old value
BYTE RAM_F[0x0800]; // RAM Flag
BYTE SRAM_N[0x2000]; // RAM New value
BYTE SRAM_O[0x2000]; // RAM Old value
BYTE SRAM_F[0x2000]; // RAM Flag
};
struct RESULT m_Result; // <EFBFBD>N<EFBFBD>V<EFBFBD>0<EFBFBD>0<EFBFBD>0
struct RESULT m_ResultOld; // <EFBFBD><EFBFBD>VMR
};
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>}Ɩ<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
class CCheatCodeEditDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
//
CHEATCODE m_Code;
INT m_nRadix;
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
//
private:
};
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0eQ<EFBFBD>R<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
class CCheatCodeInputDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
string m_Codes;
string m_Comment;
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
//
private:
};
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
class CCheatCodeDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
protected:
void OnListUpdate();
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnDestroy( DLGMSGPARAM );
DLGMSG OnTimer( DLGMSGPARAM );
DLGNOTIFY OnKeyDownListView( DLGNOTIFYPARAM );
DLGNOTIFY OnClickListView( DLGNOTIFYPARAM );
DLGNOTIFY OnDblClkListView( DLGNOTIFYPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnEnable( DLGCMDPARAM );
DLGCMD OnDisable( DLGCMDPARAM );
DLGCMD OnClear( DLGCMDPARAM );
DLGCMD OnRemove( DLGCMDPARAM );
DLGCMD OnInput( DLGCMDPARAM );
DLGCMD OnEdit( DLGCMDPARAM );
DLGCMD OnLoad( DLGCMDPARAM );
DLGCMD OnSave( DLGCMDPARAM );
// Image List
HIMAGELIST m_hImageList;
// Timer
UINT m_uTimerID;
// Temp buffer
vector<CHEATCODE> m_CheatCode;
private:
};
#endif // !__CCHEATDLG_INCLUDED__