Skip to content

Commit

Permalink
Fix load state bug
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iCatButler committed Apr 1, 2016
1 parent f84c690 commit 580df75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions win32/gui/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "NoPic.h"
#include "misc.h"
#include "sio.h"
#include "pgxp_gte.h"

extern void LidInterrupt();

Expand Down Expand Up @@ -310,6 +311,7 @@ int _OpenPlugins(HWND hWnd) {

ret = GPU_open(hWnd);
if (ret < 0) { SysMessage(_("Error Opening GPU Plugin (%d)"), ret); return -1; }
GPU_pgxpMemory(0, PGXP_GetMem());
ret = SPU_open(hWnd);
if (ret < 0) { SysMessage(_("Error Opening SPU Plugin (%d)"), ret); return -1; }
SPU_registerCallback(SPUirq);
Expand Down

0 comments on commit 580df75

Please sign in to comment.