summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2012-06-19 13:51:29 +0200
committerPierre Bourdon <delroth@gmail.com>2012-06-19 13:51:29 +0200
commite550623b11378d7cfae2eee9371e8fa81967ec0c (patch)
tree29f5a9e781b95c528f57ed38eec091105c0c3706 /Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp
parent988bd53b5fc4bb843c0bccb81e8815a5b9dce68a (diff)
Added a button to dump the FakeVMEM from the memory debugger if the game uses it
Diffstat (limited to 'Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp b/Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp
index 160066b1b5..5673d7b7c1 100644
--- a/Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp
+++ b/Source/Core/DolphinWX/Src/Debugger/MemoryWindow.cpp
@@ -45,6 +45,7 @@ enum
IDM_SETVALBUTTON,
IDM_DUMP_MEMORY,
IDM_DUMP_MEM2,
+ IDM_DUMP_FAKEVMEM,
IDM_VALBOX,
IDM_U8,
IDM_U16,
@@ -61,6 +62,7 @@ BEGIN_EVENT_TABLE(CMemoryWindow, wxPanel)
EVT_BUTTON(IDM_SETVALBUTTON, CMemoryWindow::SetMemoryValue)
EVT_BUTTON(IDM_DUMP_MEMORY, CMemoryWindow::OnDumpMemory)
EVT_BUTTON(IDM_DUMP_MEM2, CMemoryWindow::OnDumpMem2)
+ EVT_BUTTON(IDM_DUMP_FAKEVMEM, CMemoryWindow::OnDumpFakeVMEM)
EVT_CHECKBOX(IDM_U8, CMemoryWindow::U8)
EVT_CHECKBOX(IDM_U16, CMemoryWindow::U16)
EVT_CHECKBOX(IDM_U32, CMemoryWindow::U32)
@@ -96,6 +98,9 @@ CMemoryWindow::CMemoryWindow(wxWindow* parent, wxWindowID id,
sizerRight->Add(new wxButton(this, IDM_DUMP_MEMORY, _("&Dump MRAM")));
sizerRight->Add(new wxButton(this, IDM_DUMP_MEM2, _("&Dump EXRAM")));
+ if (SConfig::GetInstance().m_LocalCoreStartupParameter.iTLBHack == 1)
+ sizerRight->Add(new wxButton(this, IDM_DUMP_FAKEVMEM, _("&Dump FakeVMEM")));
+
wxStaticBoxSizer* sizerSearchType = new wxStaticBoxSizer(wxVERTICAL, this, _("Search"));
sizerSearchType->Add(btnSearch = new wxButton(this, IDM_SEARCH, _("Search")));
@@ -256,6 +261,12 @@ void CMemoryWindow::OnDumpMem2( wxCommandEvent& event )
}
}
+// Write fake vmem to file
+void CMemoryWindow::OnDumpFakeVMEM( wxCommandEvent& event )
+{
+ DumpArray(File::GetUserPath(F_FAKEVMEMDUMP_IDX), Memory::m_pVirtualFakeVMEM, Memory::FAKEVMEM_SIZE);
+}
+
void CMemoryWindow::U8(wxCommandEvent& event)
{
chk16->SetValue(0);