mirror of https://github.com/PCSX2/pcsx2.git
GSDumpReplayer: Fix ReadFIFO2 packet executing on wrong thread
This commit is contained in:
parent
5b86205349
commit
8dc1592278
pcsx2
|
@ -258,8 +258,13 @@ void GSDumpReplayerCpuStep()
|
|||
|
||||
case GSDumpTypes::GSType::ReadFIFO2:
|
||||
{
|
||||
std::unique_ptr<char[]> arr(new char[*((int*)packet.data)]);
|
||||
GSreadFIFO2((u8*)arr.get(), *((int*)packet.data));
|
||||
u32 size;
|
||||
std::memcpy(&size, packet.data, sizeof(size));
|
||||
|
||||
std::unique_ptr<u8[]> arr(new u8[size]);
|
||||
GetMTGS().WaitGS();
|
||||
GetMTGS().SendPointerPacket(GS_RINGTYPE_INIT_READ_FIFO2, size, arr.get());
|
||||
GetMTGS().WaitGS(false); // wait without reg sync
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue