Qt: Fix bug where config-based RAIntegration occasionally failed
This commit is contained in:
parent
c3bf267936
commit
0c15c9eaa8
|
@ -442,10 +442,6 @@ bool System::Internal::CPUThreadInitialize(Error* error)
|
||||||
// This will call back to Host::LoadSettings() -> ReloadSources().
|
// This will call back to Host::LoadSettings() -> ReloadSources().
|
||||||
LoadSettings(false);
|
LoadSettings(false);
|
||||||
|
|
||||||
#ifdef ENABLE_RAINTEGRATION
|
|
||||||
if (Host::GetBaseBoolSettingValue("Cheevos", "UseRAIntegration", false))
|
|
||||||
Achievements::SwitchToRAIntegration();
|
|
||||||
#endif
|
|
||||||
if (g_settings.achievements_enabled)
|
if (g_settings.achievements_enabled)
|
||||||
Achievements::Initialize();
|
Achievements::Initialize();
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
|
|
||||||
#include "scmversion/scmversion.h"
|
#include "scmversion/scmversion.h"
|
||||||
|
|
||||||
#include "imgui.h"
|
|
||||||
#include "core/bus.h"
|
#include "core/bus.h"
|
||||||
|
#include "imgui.h"
|
||||||
|
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QDateTime>
|
#include <QtCore/QDateTime>
|
||||||
|
@ -167,6 +167,12 @@ bool QtHost::PerformEarlyHardwareChecks()
|
||||||
|
|
||||||
bool QtHost::EarlyProcessStartup()
|
bool QtHost::EarlyProcessStartup()
|
||||||
{
|
{
|
||||||
|
// Config-based RAIntegration switch must happen before the main window is displayed.
|
||||||
|
#ifdef ENABLE_RAINTEGRATION
|
||||||
|
if (!Achievements::IsUsingRAIntegration() && Host::GetBaseBoolSettingValue("Cheevos", "UseRAIntegration", false))
|
||||||
|
Achievements::SwitchToRAIntegration();
|
||||||
|
#endif
|
||||||
|
|
||||||
Error error;
|
Error error;
|
||||||
if (System::Internal::ProcessStartup(&error)) [[likely]]
|
if (System::Internal::ProcessStartup(&error)) [[likely]]
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue