From 8d38596cc9725f3022ca9efdf966bafe2b8ede26 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 1 Mar 2013 08:51:01 -0800 Subject: [PATCH] Add config setting for api reporting. For now, will be disabled in some cases, but I want people to be able to set to "" so that it will always be disabled. --- Core/Config.cpp | 4 ++++ Core/Config.h | 1 + 2 files changed, 5 insertions(+) diff --git a/Core/Config.cpp b/Core/Config.cpp index e01790a52f..bd67dd157a 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -54,6 +54,8 @@ void CConfig::Load(const char *iniFileName) general->Get("IgnoreBadMemAccess", &bIgnoreBadMemAccess, true); general->Get("CurrentDirectory", ¤tDirectory, ""); general->Get("ShowDebuggerOnLoad", &bShowDebuggerOnLoad, false); + // "default" means let emulator decide, "" means disable. + general->Get("ReportHost", &sReportHost, "default"); IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU"); cpu->Get("Jit", &bJit, true); @@ -120,6 +122,8 @@ void CConfig::Save() general->Set("IgnoreBadMemAccess", bIgnoreBadMemAccess); general->Set("CurrentDirectory", currentDirectory); general->Set("ShowDebuggerOnLoad", bShowDebuggerOnLoad); + general->Set("ReportHost", sReportHost); + IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU"); cpu->Set("Jit", bJit); cpu->Set("FastMemory", bFastMemory); diff --git a/Core/Config.h b/Core/Config.h index 8468158d46..87109618f0 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -49,6 +49,7 @@ public: bool bIgnoreBadMemAccess; bool bFastMemory; bool bJit; + std::string sReportHost; // GFX bool bDisplayFramebuffer;