summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/MemoryWindow.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2010-06-03 18:05:08 +0000
committerhrydgard <hrydgard@gmail.com>2010-06-03 18:05:08 +0000
commita3c96ac42c4c2ce4a4cf2f5ca09a5ae9dd4bd303 (patch)
treeda7ca1f64fce704934d581c82a9533fe38b103f1 /Source/Core/DebuggerWX/Src/MemoryWindow.cpp
parent3236aa9e73cf6d0bc798cce6f5224cff40eb6955 (diff)
Warp back to 5578. Sorry for the lost changes, please re-apply. Reason: 5579 is a complete disaster.
Not only does it change tons of files to switch to a new and non-working (it doesn't parse my ini files, at least) ini parser, it also reshuffles a lot of code and removes a plugin. The latter part is fine, but doing these two major switches in one revision, one of which is broken, is completely unacceptable. I said to merge tiny changes, not massive reworkings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5589 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/MemoryWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/MemoryWindow.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/Core/DebuggerWX/Src/MemoryWindow.cpp b/Source/Core/DebuggerWX/Src/MemoryWindow.cpp
index d24701975a..61e0468fe0 100644
--- a/Source/Core/DebuggerWX/Src/MemoryWindow.cpp
+++ b/Source/Core/DebuggerWX/Src/MemoryWindow.cpp
@@ -129,23 +129,21 @@ void CMemoryWindow::Save(IniFile& _IniFile) const
// Prevent these bad values that can happen after a crash or hanging
if(GetPosition().x != -32000 && GetPosition().y != -32000)
{
- Section& memwin = _IniFile["MemoryWindow"];
- memwin.Set("x", GetPosition().x);
- memwin.Set("y", GetPosition().y);
- memwin.Set("w", GetSize().GetWidth());
- memwin.Set("h", GetSize().GetHeight());
+ _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;
- Section& memwin = _IniFile["MemoryWindow"];
- memwin.Get("x", &x, GetPosition().x);
- memwin.Get("y", &y, GetPosition().y);
- memwin.Get("w", &w, GetSize().GetWidth());
- memwin.Get("h", &h, GetSize().GetHeight());
+ 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);
}
@@ -324,12 +322,12 @@ void CMemoryWindow::onSearch(wxCommandEvent& event) {
//memview->cu
wxString rawData=valbox->GetValue();
std::vector<u8> Dest;//May need a better name
- size_t size=0;
+ u32 size=0;
int pad=rawData.size()%2;//If it's uneven
unsigned long i=0;
long count=0;
char copy[3]={0};
- size_t newsize=0;
+ long newsize=0;
unsigned char *tmp2=0;
char* tmpstr=0;
switch (chkHex->GetValue()){