From: gameblabla Date: Thu, 18 Jul 2019 00:11:40 +0000 (+0200) Subject: psxbios: Merge upstream fix for Deliverevent in firstfile X-Git-Tag: r23~156^2~34 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857fabead1b570fcf4b1097b9549e0c54530d5e9;p=pcsx_rearmed.git psxbios: Merge upstream fix for Deliverevent in firstfile Looks like it is only executed for memory cards, that makes sense i guess. --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 83e55186..010a229b 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -2110,15 +2110,16 @@ void psxBios_firstfile() { // 42 pfile = ffile+5; nfile = 1; if (!strncmp(pa0, "bu00", 4)) { + // firstfile() calls _card_read() internally, so deliver it's event + DeliverEvent(0x11, 0x2); bufile(1); } else if (!strncmp(pa0, "bu10", 4)) { + // firstfile() calls _card_read() internally, so deliver it's event + DeliverEvent(0x11, 0x2); bufile(2); } } - // firstfile() calls _card_read() internally, so deliver it's event - DeliverEvent(0x11, 0x2); - pc0 = ra; }