ppsspp/Windows/Debugger/DumpMemoryWindow.h
2020-01-04 10:32:48 -08:00

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();
};