From 8faaec82364c85dfec36737dc0dc9ce6c979d7a3 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Thu, 27 Aug 2009 19:38:35 +0000 Subject: GUI: Dock console. Couldn't remove the border, anybody know how? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4087 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp') diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index 02a5ad5d83..6421662c08 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -441,8 +441,9 @@ void CCodeWindow::Load() ini.Get("ShowOnStart", "JIT", &bJitWindow, false); ini.Get("ShowOnStart", "Sound", &bSoundWindow, false); ini.Get("ShowOnStart", "Video", &bVideoWindow, false); - + // Get notebook affiliation ini.Get("Notebook", "Log", &iLogWindow, 1); + ini.Get("Notebook", "Console", &iConsoleWindow, 1); ini.Get("Notebook", "Code", &iCodeWindow, 1); ini.Get("Notebook", "Registers", &iRegisterWindow, 1); ini.Get("Notebook", "Breakpoints", &iBreakpointWindow, 0); @@ -450,8 +451,9 @@ void CCodeWindow::Load() ini.Get("Notebook", "JIT", &iJitWindow, 1); ini.Get("Notebook", "Sound", &iSoundWindow, 0); ini.Get("Notebook", "Video", &iVideoWindow, 0); - // Remove bad values + iLogWindow = Limit(iLogWindow, 0, Parent->m_NB.size()-1); + iConsoleWindow = Limit(iConsoleWindow, 0, Parent->m_NB.size()-1); iCodeWindow = Limit(iCodeWindow, 0, Parent->m_NB.size()-1); iRegisterWindow = Limit(iRegisterWindow, 0, Parent->m_NB.size()-1); iBreakpointWindow = Limit(iBreakpointWindow, 0, Parent->m_NB.size()-1); @@ -485,6 +487,7 @@ void CCodeWindow::Save() ini.Set("ShowOnStart", "Video", GetMenuBar()->IsChecked(IDM_VIDEOWINDOW)); ini.Set("Notebook", "Log", iLogWindow); + ini.Set("Notebook", "Console", iConsoleWindow); ini.Set("Notebook", "Code", iCodeWindow); ini.Set("Notebook", "Registers", iRegisterWindow); ini.Set("Notebook", "Breakpoints", iBreakpointWindow); -- cgit v1.2.3