From 2dfa63bb1c0b6494541553d4f97e08015c682c85 Mon Sep 17 00:00:00 2001 From: Kingcom Date: Mon, 30 Sep 2013 21:42:05 +0200 Subject: [PATCH] Add config setting --- Core/Config.cpp | 2 ++ Core/Config.h | 1 + Windows/Debugger/Debugger_Disasm.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/Core/Config.cpp b/Core/Config.cpp index e33a48acce..da8b93f9d4 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -239,6 +239,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) debugConfig->Get("FontWidth", &iFontWidth, 8); debugConfig->Get("FontHeight", &iFontHeight, 12); debugConfig->Get("DisplayStatusBar", &bDisplayStatusBar, true); + debugConfig->Get("ShowBottomTabTitles",&bShowBottomTabTitles,true); debugConfig->Get("ShowDeveloperMenu", &bShowDeveloperMenu, false); IniFile::Section *gleshacks = iniFile.GetOrCreateSection("GLESHacks"); @@ -395,6 +396,7 @@ void Config::Save() { debugConfig->Set("FontWidth", iFontWidth); debugConfig->Set("FontHeight", iFontHeight); debugConfig->Set("DisplayStatusBar", bDisplayStatusBar); + debugConfig->Set("ShowBottomTabTitles",bShowBottomTabTitles); debugConfig->Set("ShowDeveloperMenu", bShowDeveloperMenu); if (!iniFile.Save(iniFilename_.c_str())) { diff --git a/Core/Config.h b/Core/Config.h index cd04bbecf9..f73e47b8fc 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -166,6 +166,7 @@ public: int iFontWidth; int iFontHeight; bool bDisplayStatusBar; + bool bShowBottomTabTitles; bool bShowDeveloperMenu; std::string currentDirectory; diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index ace871fa18..f686d004cc 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -135,6 +135,7 @@ CDisasm::CDisasm(HINSTANCE _hInstance, HWND _hParent, DebugInterface *_cpu) : Di stackTraceView->loadStackTrace(); bottomTabs->AddTab(stackTraceView->GetHandle(),L"Stack frames"); + bottomTabs->SetShowTabTitles(g_Config.bShowBottomTabTitles); bottomTabs->ShowTab(memHandle); // init status bar