mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 17:02:19 +00:00
35 lines
749 B
C++
35 lines
749 B
C++
#pragma once
|
|
#include "Common/CommonWindows.h"
|
|
#include "Common/CommonTypes.h"
|
|
#include "Core/Debugger/DebugInterface.h"
|
|
|
|
class DumpMemoryWindow
|
|
{
|
|
enum Mode { MODE_RAM, MODE_VRAM, MODE_SCRATCHPAD, MODE_CUSTOM };
|
|
|
|
HWND parentHwnd;
|
|
DebugInterface* cpu;
|
|
bool filenameChosen_;
|
|
Mode selectedMode;
|
|
|
|
u32 start;
|
|
u32 size;
|
|
std::wstring fileName_;
|
|
|
|
static DumpMemoryWindow* bp;
|
|
void changeMode(HWND hwnd, Mode newMode);
|
|
bool fetchDialogData(HWND hwnd);
|
|
void HandleBrowseClick(HWND hwnd);
|
|
|
|
public:
|
|
DumpMemoryWindow(HWND parent, DebugInterface* cpu): cpu(cpu)
|
|
{
|
|
parentHwnd = parent;
|
|
filenameChosen_ = false;
|
|
selectedMode = MODE_RAM;
|
|
};
|
|
|
|
static INT_PTR CALLBACK dlgFunc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
|
|
bool exec();
|
|
};
|