Core::GetState: Avoid Global System Accessor

This commit is contained in:
mitaclaw
2024-03-28 11:35:13 -07:00
parent db0cd82326
commit eb92d6f0a8
42 changed files with 135 additions and 101 deletions

View File

@ -10,6 +10,7 @@
#include "Common/Thread.h"
#include "Core/Core.h"
#include "Core/System.h"
namespace VideoCommon
{
@ -96,7 +97,7 @@ bool AsyncShaderCompiler::WaitUntilCompletion(
// Update progress while the compiles complete.
for (;;)
{
if (Core::GetState() == Core::State::Stopping)
if (Core::GetState(Core::System::GetInstance()) == Core::State::Stopping)
return false;
size_t remaining_items;