2012-11-01 16:19:01 +01:00
|
|
|
#pragma once
|
2013-07-28 21:01:49 -07:00
|
|
|
#include "Windows/W32Util/DialogManager.h"
|
2012-11-01 16:19:01 +01:00
|
|
|
|
2013-07-28 21:01:49 -07:00
|
|
|
#include "Core/MemMap.h"
|
2012-11-01 16:19:01 +01:00
|
|
|
|
2013-07-28 21:01:49 -07:00
|
|
|
#include "Core/Debugger/DebugInterface.h"
|
2020-05-24 18:18:48 +01:00
|
|
|
#include "CtrlMemView.h"
|
2013-07-28 21:01:49 -07:00
|
|
|
#include "Common/CommonWindows.h"
|
2012-11-17 22:44:29 +00:00
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
class CMemoryDlg : public Dialog
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
DebugInterface *cpu;
|
|
|
|
|
static RECT slRect;
|
2020-05-24 18:18:48 +01:00
|
|
|
RECT winRect, srRect;
|
|
|
|
|
CtrlMemView *memView;
|
|
|
|
|
HWND memViewHdl, symListHdl, editWnd, searchBoxHdl, srcListHdl;
|
2021-02-07 10:49:22 -08:00
|
|
|
HWND layerDropdown_;
|
2021-02-07 14:07:13 -08:00
|
|
|
HWND status_;
|
2022-12-10 20:32:12 -08:00
|
|
|
BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam) override;
|
2020-05-24 18:18:48 +01:00
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
public:
|
|
|
|
|
int index; //helper
|
|
|
|
|
|
2020-05-24 18:18:48 +01:00
|
|
|
void searchBoxRedraw(std::vector<u32> results);
|
|
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
// constructor
|
|
|
|
|
CMemoryDlg(HINSTANCE _hInstance, HWND _hParent, DebugInterface *_cpu);
|
|
|
|
|
|
|
|
|
|
// destructor
|
|
|
|
|
~CMemoryDlg(void);
|
|
|
|
|
|
|
|
|
|
void Goto(u32 addr);
|
2022-12-10 20:32:12 -08:00
|
|
|
void Update(void) override;
|
2012-11-01 16:19:01 +01:00
|
|
|
void NotifyMapLoaded();
|
|
|
|
|
|
|
|
|
|
void Size(void);
|
2021-12-31 09:10:40 -08:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool mapLoadPending_ = false;
|
2012-11-01 16:19:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|