diff options
| author | John Peterson <jpeterson57@gmail.com> | 2008-11-12 15:03:21 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2008-11-12 15:03:21 +0000 |
| commit | b698ea376df75527477ac9aa125bf78b72e77876 (patch) | |
| tree | 5fe55b1959b30c33b969d5c0f52db9608070f7d3 /Source/Core/DebuggerWX/Src/MemoryWindow.cpp | |
| parent | 85abf9d5f9e3f04aae992ebaf1e530e0af619823 (diff) | |
Fixed emulated Wiimote again. Improved keyboard/gamepad controls for Wario Land.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1151 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/MemoryWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/MemoryWindow.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Core/DebuggerWX/Src/MemoryWindow.cpp b/Source/Core/DebuggerWX/Src/MemoryWindow.cpp index e7a02ca518..2ae39b249e 100644 --- a/Source/Core/DebuggerWX/Src/MemoryWindow.cpp +++ b/Source/Core/DebuggerWX/Src/MemoryWindow.cpp @@ -109,10 +109,14 @@ 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());
+ // Prevent these bad values that can happen after a crash or hanging
+ if(GetPosition().x != -32000 && GetPosition().y != -32000)
+ {
+ _IniFile.Set("MemoryWindow", "x", GetPosition().x);
+ _IniFile.Set("MemoryWindow", "y", GetPosition().y);
+ _IniFile.Set("MemoryWindow", "w", GetSize().GetWidth());
+ _IniFile.Set("MemoryWindow", "h", GetSize().GetHeight());
+ }
}
|
