diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-04-01 19:12:51 +0100 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-04-01 19:12:51 +0100 |
| commit | 580df75296286b65812afdac64d82054279fb235 (patch) | |
| tree | 86edaa9055934c133a3dc6374f87e4da655c9d39 /win32/gui/plugin.c | |
| parent | f84c6902b40b678b2027a95cb4a80bbfb3270f9f (diff) | |
| download | pcsxr-580df75296286b65812afdac64d82054279fb235.tar.gz | |
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.
Diffstat (limited to 'win32/gui/plugin.c')
| -rwxr-xr-x | win32/gui/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/gui/plugin.c b/win32/gui/plugin.c index 14d75535..6c79a0dc 100755 --- a/win32/gui/plugin.c +++ b/win32/gui/plugin.c @@ -30,6 +30,7 @@ #include "NoPic.h" #include "misc.h" #include "sio.h" +#include "pgxp_gte.h" extern void LidInterrupt(); @@ -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); |
