2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CDumpMemory :
|
|
|
|
public CDebugDialog < CDumpMemory >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum { IDD = IDD_Cheats_DumpMemory };
|
|
|
|
|
|
|
|
CDumpMemory(CDebuggerUI * debugger);
|
|
|
|
virtual ~CDumpMemory(void);
|
|
|
|
|
|
|
|
private:
|
2021-04-13 00:07:11 +00:00
|
|
|
CDumpMemory(void);
|
|
|
|
CDumpMemory(const CDumpMemory&);
|
|
|
|
CDumpMemory& operator=(const CDumpMemory&);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
enum DumpFormat
|
|
|
|
{
|
2017-08-18 05:08:22 +00:00
|
|
|
DisassemblyWithPC,
|
2017-09-13 10:36:03 +00:00
|
|
|
RawBigEndian
|
2016-01-27 09:11:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
BEGIN_MSG_MAP_EX(CDumpMemory)
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
|
|
COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked)
|
2019-01-14 07:06:01 +00:00
|
|
|
MSG_WM_EXITSIZEMOVE(OnExitSizeMove);
|
2017-09-13 10:36:03 +00:00
|
|
|
END_MSG_MAP()
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2019-12-25 00:41:20 +00:00
|
|
|
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
|
|
|
LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& bHandled);
|
2019-01-14 07:06:01 +00:00
|
|
|
void OnExitSizeMove(void);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2020-05-12 12:19:05 +00:00
|
|
|
bool DumpMemory(LPCTSTR FileName, DumpFormat Format, DWORD StartPC, DWORD EndPC, DWORD DumpPC);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2017-09-13 10:36:03 +00:00
|
|
|
CComboBox m_FormatList;
|
|
|
|
CEdit m_FileName;
|
2017-11-21 20:37:45 +00:00
|
|
|
CEditNumber32 m_StartAddress, m_EndAddress, m_PC;
|
2016-01-27 09:11:59 +00:00
|
|
|
};
|