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:
degasus
2017-01-27 09:44:31 +01:00
parent 017e8050b6
commit 3787af9ee9
5 changed files with 74 additions and 72 deletions

View File

@ -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() &&