From: gameblabla Date: Thu, 18 Jul 2019 00:23:24 +0000 (+0200) Subject: psxbios: Stub for get_error X-Git-Tag: r23~156^2~26 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002b2f7d98f8c543cd88cb453c88b09eb5e556ad;p=pcsx_rearmed.git psxbios: Stub for get_error According to a user on PCSX-Reloaded codeplex (now dead), this fixed loading/saving in Final Fantasy Tactics. --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index e9a13f99..df0550e8 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -2417,6 +2417,13 @@ void psxBios__new_card() { // 0x50 pc0 = ra; } +/* According to a user, this allows Final Fantasy Tactics to save/load properly */ +void psxBios__get_error(void) // 55 +{ + v0 = 0; + pc0 = ra; +} + void psxBios_Krom2RawAdd() { // 0x51 int i = 0; @@ -2839,7 +2846,7 @@ void psxBiosInit() { //biosB0[0x52] = psxBios_sys_b0_52; //biosB0[0x53] = psxBios_sys_b0_53; //biosB0[0x54] = psxBios__get_errno; - //biosB0[0x55] = psxBios__get_error; + biosB0[0x55] = psxBios__get_error; biosB0[0x56] = psxBios_GetC0Table; biosB0[0x57] = psxBios_GetB0Table; biosB0[0x58] = psxBios__card_chan;