Move GetCoreThread()/GetMTGS() to AppCoreThread.cpp

This commit is contained in:
Connor McLaughlin 2021-08-19 17:59:17 +10:00 committed by Kojin
parent 6b2a865e57
commit 4b2a81e7ff
3 changed files with 11 additions and 12 deletions

View File

@ -542,9 +542,9 @@ TraceLogFilters& SetTraceConfig();
#define THREAD_VU1 (EmuConfig.Cpu.Recompiler.EnableVU1 && EmuConfig.Speedhacks.vuThread) #define THREAD_VU1 (EmuConfig.Cpu.Recompiler.EnableVU1 && EmuConfig.Speedhacks.vuThread)
#define INSTANT_VU1 (EmuConfig.Speedhacks.vu1Instant) #define INSTANT_VU1 (EmuConfig.Speedhacks.vu1Instant)
#define CHECK_EEREC (EmuConfig.Cpu.Recompiler.EnableEE && GetCpuProviders().IsRecAvailable_EE()) #define CHECK_EEREC (EmuConfig.Cpu.Recompiler.EnableEE)
#define CHECK_CACHE (EmuConfig.Cpu.Recompiler.EnableEECache) #define CHECK_CACHE (EmuConfig.Cpu.Recompiler.EnableEECache)
#define CHECK_IOPREC (EmuConfig.Cpu.Recompiler.EnableIOP && GetCpuProviders().IsRecAvailable_IOP()) #define CHECK_IOPREC (EmuConfig.Cpu.Recompiler.EnableIOP)
//------------ SPECIAL GAME FIXES!!! --------------- //------------ SPECIAL GAME FIXES!!! ---------------
#define CHECK_VUADDSUBHACK (EmuConfig.Gamefixes.VuAddSubHack) // Special Fix for Tri-ace games, they use an encryption algorithm that requires VU addi opcode to be bit-accurate. #define CHECK_VUADDSUBHACK (EmuConfig.Gamefixes.VuAddSubHack) // Special Fix for Tri-ace games, they use an encryption algorithm that requires VU addi opcode to be bit-accurate.

View File

@ -42,6 +42,15 @@ __aligned16 AppCoreThread CoreThread;
typedef void (AppCoreThread::*FnPtr_CoreThreadMethod)(); typedef void (AppCoreThread::*FnPtr_CoreThreadMethod)();
SysCoreThread& GetCoreThread()
{
return CoreThread;
}
SysMtgsThread& GetMTGS()
{
return mtgsThread;
}
namespace GameInfo namespace GameInfo
{ {

View File

@ -1100,16 +1100,6 @@ SysMainMemory& GetVmMemory()
return wxGetApp().GetVmReserve(); return wxGetApp().GetVmReserve();
} }
SysCoreThread& GetCoreThread()
{
return CoreThread;
}
SysMtgsThread& GetMTGS()
{
return mtgsThread;
}
SysCpuProviderPack& GetCpuProviders() SysCpuProviderPack& GetCpuProviders()
{ {
return *wxGetApp().m_CpuProviders; return *wxGetApp().m_CpuProviders;