diff options
Diffstat (limited to 'libpcsxcore/psxcommon.c')
| -rw-r--r-- | libpcsxcore/psxcommon.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libpcsxcore/psxcommon.c b/libpcsxcore/psxcommon.c index f118c2db..797625a7 100644 --- a/libpcsxcore/psxcommon.c +++ b/libpcsxcore/psxcommon.c @@ -34,11 +34,28 @@ int EmuInit() { return psxInit(); } +static void LoadLibPS() { + char buf[MAXPATHLEN]; + FILE *f; + + // Load Net Yaroze runtime library (if exists)
+ sprintf(buf, "%s/libps.exe", Config.BiosDir);
+ f = fopen(buf, "rb");
+
+ if (f != NULL) {
+ fseek(f, 0x800, SEEK_SET);
+ fread(psxM + 0x10000, 0x61000, 1, f);
+ fclose(f);
+ } +} + void EmuReset() { FreeCheatSearchResults(); FreeCheatSearchMem(); psxReset(); + + LoadLibPS(); } void EmuShutdown() { |
