Auto-disable CRC reporting in power save mode.

This commit is contained in:
Unknown W. Brackets 2016-07-24 17:31:41 -07:00
parent f366f09c4c
commit 372798e16c
2 changed files with 6 additions and 2 deletions

View file

@ -18,6 +18,7 @@
#include "Core/Reporting.h"
#include "Common/CPUDetect.h"
#include "Core/Core.h"
#include "Core/CoreTiming.h"
#include "Core/Config.h"
#include "Core/CwCheat.h"
@ -427,7 +428,7 @@ namespace Reporting
postdata.Add("graphics", StringFromFormat("%d", payload.int1));
postdata.Add("speed", StringFromFormat("%d", payload.int2));
postdata.Add("gameplay", StringFromFormat("%d", payload.int3));
postdata.Add("crc", StringFromFormat("%08x", RetrieveCRC()));
postdata.Add("crc", StringFromFormat("%08x", Core_GetPowerSaving() ? 0 : RetrieveCRC()));
AddScreenshotData(postdata, payload.string2);
payload.string1.clear();
payload.string2.clear();

View file

@ -23,6 +23,7 @@
#include "UI/PauseScreen.h"
#include "UI/ReportScreen.h"
#include "Core/Core.h"
#include "Core/Reporting.h"
#include "Core/Screenshot.h"
#include "Core/System.h"
@ -224,7 +225,9 @@ void ReportScreen::CreateViews() {
}
#ifdef MOBILE_DEVICE
leftColumnItems->Add(new TextView(rp->T("FeedbackIncludeCRC", "Note: Battery will be used to send a disc CRC"), new LinearLayoutParams(Margins(12, 5, 0, 5))))->SetEnabledPtr(&enableReporting_);
if (!Core_GetPowerSaving()) {
leftColumnItems->Add(new TextView(rp->T("FeedbackIncludeCRC", "Note: Battery will be used to send a disc CRC"), new LinearLayoutParams(Margins(12, 5, 0, 5))))->SetEnabledPtr(&enableReporting_);
}
#endif
std::string path = GetSysDirectory(DIRECTORY_SCREENSHOT);