From 847af200b21078dce2bfce6ade3d0bc7e3da3368 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 14 May 2013 01:27:37 -0700 Subject: [PATCH] Add an option to enable reporting in the UI. --- UI/MenuScreens.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 892467437b..ce85e481b1 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -56,6 +56,7 @@ namespace MainWindow { #include "GPU/GPUInterface.h" #include "Core/Config.h" #include "Core/CoreParameter.h" +#include "Core/Reporting.h" #include "Core/SaveState.h" #include "Core/HLE/sceUtility.h" @@ -928,8 +929,15 @@ void SystemScreen::render() { UICheckBox(GEN_ID, x, y += stride, s->T("Encrypt Save"), ALIGN_TOPLEFT, &g_Config.bEncryptSave); UICheckBox(GEN_ID, x, y += stride, s->T("Use Button X to Confirm"), ALIGN_TOPLEFT, &g_Config.bButtonPreference); bool tf = g_Config.itimeformat == 1; - UICheckBox(GEN_ID, x, y += stride, s->T("12HR Time Format"), ALIGN_TOPLEFT, &tf); - g_Config.itimeformat = tf ? 1 : 0; + if (UICheckBox(GEN_ID, x, y += stride, s->T("12HR Time Format"), ALIGN_TOPLEFT, &tf)) { + g_Config.itimeformat = tf ? 1 : 0; + } + + bool reportingEnabled = Reporting::IsEnabled(); + const static std::string reportHostOfficial = "report.ppsspp.org"; + if (UICheckBox(GEN_ID, x, y += stride, s->T("Enable Compatibility Server Reports"), ALIGN_TOPLEFT, &reportingEnabled)) { + g_Config.sReportHost = reportingEnabled ? reportHostOfficial : ""; + } if (UIButton(GEN_ID, Pos(x, y += stride * 3), LARGE_BUTTON_WIDTH, 0, s->T("Language"), ALIGN_BOTTOMLEFT)) { screenManager()->push(new LanguageScreen());