clamp verbosity setting

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2703 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-03-20 22:00:26 +00:00
parent f5e643bf34
commit 2c13aa0394
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ void CLogWindow::LoadSettings()
ini.Get("LogWindow", "h", &h, GetSize().GetHeight());
SetSize(x, y, w, h);
ini.Get("Options", "Verbosity", &verbosity, 0);
if (verbosity < 1) verbosity = 1;
if (verbosity > DEBUG_LEVEL) verbosity = DEBUG_LEVEL;
m_verbosity->SetSelection(verbosity - 1);
ini.Get("Options", "WriteToFile", &m_writeFile, true);
m_writeFileCB->SetValue(m_writeFile);