Cleanup a lot of the bootup state management.

This commit is contained in:
Henrik Rydgård committed 2025-03-30 14:02:29 +02:00
1 parent e6ea158dcc
commit 088a02bfdb
30 files changed
+239 -257

No files matched your search

+4 -4
View File
@@ -381,7 +381,7 @@ namespace Reporting
void UpdateConfig() {
currentSupported = IsSupported();
if (!currentSupported && PSP_IsInited())
if (!currentSupported && PSP_GetBootState() == BootState::Complete)
everUnsupported = true;
}
@@ -438,7 +438,7 @@ namespace Reporting
void AddGameplayInfo(UrlEncoder &postdata)
{
// Just to get an idea of how long they played.
if (PSP_IsInited())
if (PSP_GetBootState() == BootState::Complete)
postdata.Add("ticks", (const uint64_t)CoreTiming::GetTicks());
float vps, fps;
@@ -536,7 +536,7 @@ namespace Reporting
// Don't report from games without a version ID (i.e. random hashed homebrew IDs.)
// The problem is, these aren't useful because the hashes end up different for different people.
// TODO: Should really hash the ELF instead of the path, but then that affects savestates/cheats.
if (PSP_IsInited() && g_paramSFO.GetValueString("DISC_VERSION").empty())
if (PSP_GetBootState() == BootState::Complete && g_paramSFO.GetValueString("DISC_VERSION").empty())
return false;
// Some users run the exe from a zip or something, and don't have fonts.
@@ -555,7 +555,7 @@ namespace Reporting
bool IsEnabled()
{
if (g_Config.sReportHost.empty() || (!currentSupported && PSP_IsInited()))
if (g_Config.sReportHost.empty() || (!currentSupported && PSP_GetBootState() == BootState::Complete))
return false;
// Disabled by default for now.
if (g_Config.sReportHost.compare("default") == 0)