2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2008-09-18 03:15:49 +00:00
|
|
|
class CDumpMemory :
|
2015-11-06 21:22:02 +00:00
|
|
|
public CDebugDialog < CDumpMemory >
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2015-11-06 21:22:02 +00:00
|
|
|
public:
|
|
|
|
enum { IDD = IDD_Cheats_DumpMemory };
|
2012-12-18 08:47:53 +00:00
|
|
|
|
2015-11-06 21:22:02 +00:00
|
|
|
CDumpMemory(CDebuggerUI * debugger);
|
|
|
|
virtual ~CDumpMemory(void);
|
2012-12-18 08:47:53 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-06 21:22:02 +00:00
|
|
|
CDumpMemory(void); // Disable default constructor
|
|
|
|
CDumpMemory(const CDumpMemory&); // Disable copy constructor
|
|
|
|
CDumpMemory& operator=(const CDumpMemory&); // Disable assignment
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-06 21:22:02 +00:00
|
|
|
enum DumpFormat
|
|
|
|
{
|
|
|
|
DisassemblyWithPC
|
|
|
|
};
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-06 21:22:02 +00:00
|
|
|
BEGIN_MSG_MAP_EX(CDumpMemory)
|
|
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
|
|
COMMAND_CODE_HANDLER(BN_CLICKED, OnClicked)
|
|
|
|
END_MSG_MAP()
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-06 21:22:02 +00:00
|
|
|
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
2008-09-18 03:15:49 +00:00
|
|
|
LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND /*hWndCtl*/, BOOL& bHandled);
|
2012-12-18 08:47:53 +00:00
|
|
|
|
2015-11-06 21:22:02 +00:00
|
|
|
bool DumpMemory(LPCSTR FileName, DumpFormat Format, DWORD StartPC, DWORD EndPC, DWORD DumpPC);
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
CEditNumber m_StartAddress, m_EndAddress, m_PC;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|