Skip to content

Commit 580df75

Browse files
committed
Fix load state bug
In some games PGSX memory pointer was not being set after saved states were reloaded, causing the GPU plugin to fall back on fixed point values. Ensure that PGSX memory pointer in GPU plugin is always set upon initialisation.
1 parent f84c690 commit 580df75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

win32/gui/plugin.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "NoPic.h"
3131
#include "misc.h"
3232
#include "sio.h"
33+
#include "pgxp_gte.h"
3334

3435
extern void LidInterrupt();
3536

@@ -310,6 +311,7 @@ int _OpenPlugins(HWND hWnd) {
310311

311312
ret = GPU_open(hWnd);
312313
if (ret < 0) { SysMessage(_("Error Opening GPU Plugin (%d)"), ret); return -1; }
314+
GPU_pgxpMemory(0, PGXP_GetMem());
313315
ret = SPU_open(hWnd);
314316
if (ret < 0) { SysMessage(_("Error Opening SPU Plugin (%d)"), ret); return -1; }
315317
SPU_registerCallback(SPUirq);

0 commit comments

Comments
 (0)