mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
CommandProcessor: Limit scope of ugly SCPFifoStruct.
It's only used as an interface between two classes. So no need to declare it in the backend export header.
This commit is contained in:
@ -324,7 +324,7 @@ void RunGpuLoop()
|
||||
}
|
||||
else
|
||||
{
|
||||
SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
CommandProcessor::SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
|
||||
AsyncRequests::GetInstance()->PullEvents();
|
||||
|
||||
@ -414,7 +414,7 @@ void GpuMaySleep()
|
||||
|
||||
bool AtBreakpoint()
|
||||
{
|
||||
SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
CommandProcessor::SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
return fifo.bFF_BPEnable && (fifo.CPReadPointer == fifo.CPBreakpoint);
|
||||
}
|
||||
|
||||
@ -442,7 +442,7 @@ void RunGpu()
|
||||
|
||||
static int RunGpuOnCpu(int ticks)
|
||||
{
|
||||
SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
CommandProcessor::SCPFifoStruct& fifo = CommandProcessor::fifo;
|
||||
bool reset_simd_state = false;
|
||||
int available_ticks = int(ticks * SConfig::GetInstance().fSyncGpuOverclock) + s_sync_ticks.load();
|
||||
while (fifo.bFF_GPReadEnable && fifo.CPReadWriteDistance && !AtBreakpoint() &&
|
||||
|
Reference in New Issue
Block a user