diff options
| author | fires.gc <fires.gc@gmail.com> | 2008-07-24 13:40:07 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2008-07-24 13:40:07 +0000 |
| commit | 2f308cf77accfe9125eb2bf5fc53348fd9aaa058 (patch) | |
| tree | 07b20ba7642b61119eb1a80b21d967847c1d4b1a /Source/Core/DebuggerWX/src/MemoryWindow.cpp | |
| parent | 9e285ca377b336e3a3d2aaf763fa25ba20925f15 (diff) | |
minor improvements (mostly debugger)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@82 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/MemoryWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/src/MemoryWindow.cpp | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/Source/Core/DebuggerWX/src/MemoryWindow.cpp b/Source/Core/DebuggerWX/src/MemoryWindow.cpp index b323d7c26d..fac7a46e3a 100644 --- a/Source/Core/DebuggerWX/src/MemoryWindow.cpp +++ b/Source/Core/DebuggerWX/src/MemoryWindow.cpp @@ -38,14 +38,6 @@ // ugly that this lib included code from the main
#include "../../DolphinWX/src/Globals.h"
-class SymbolList
- : public wxListCtrl
-{
- wxString OnGetItemText(long item, long column)
- {
- return(_T("hello"));
- }
-};
enum
{
@@ -107,6 +99,25 @@ CMemoryWindow::~CMemoryWindow() }
+void CMemoryWindow::Save(IniFile& _IniFile) const
+{
+ _IniFile.Set("MemoryWindow", "x", GetPosition().x);
+ _IniFile.Set("MemoryWindow", "y", GetPosition().y);
+ _IniFile.Set("MemoryWindow", "w", GetSize().GetWidth());
+ _IniFile.Set("MemoryWindow", "h", GetSize().GetHeight());
+}
+
+
+void CMemoryWindow::Load(IniFile& _IniFile)
+{
+ int x,y,w,h;
+ _IniFile.Get("MemoryWindow", "x", &x, GetPosition().x);
+ _IniFile.Get("MemoryWindow", "y", &y, GetPosition().y);
+ _IniFile.Get("MemoryWindow", "w", &w, GetSize().GetWidth());
+ _IniFile.Get("MemoryWindow", "h", &h, GetSize().GetHeight());
+ SetSize(x, y, w, h);
+}
+
void CMemoryWindow::JumpToAddress(u32 _Address)
{
|
