aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgameblabla2019-07-21 02:38:32 +0200
committergameblabla2019-07-21 02:38:32 +0200
commit8f3b2bd3184c6d23e6297270eeec897cb72c7b7a (patch)
tree96770ae8f1b28d21ee8b28dc98037be14a5038a3
parentcf1af0ed3ca53d0d7092e87f1d090eb3b9b5b128 (diff)
downloadpcsx_rearmed-8f3b2bd3184c6d23e6297270eeec897cb72c7b7a.tar.gz
pcsx_rearmed-8f3b2bd3184c6d23e6297270eeec897cb72c7b7a.tar.bz2
pcsx_rearmed-8f3b2bd3184c6d23e6297270eeec897cb72c7b7a.zip
psxbios: Make HLE bios start from block 1, not 2.
I already fixed this for bufile : ptr = Mcd##mcd##Data + 128 * (nfile + 1); \ instead of ptr = Mcd##mcd##Data + 128 * nfile; \ But i forgot to also fix psxBios_firstfile accordingly. So nfile would still start from block 2 and it would cause all kinds of issues. This was the original comment on pcsxr codeplex as my patch was based on it : "The HLE-Bios start to read memory card blocks at block 2. You need to change ptr = Mcd##mcd##Data + 128 * nfile; \ to ptr = Mcd##mcd##Data + 128 * (nfile + 1); \ for #define bufile(mcd) { \ and changing nfile = 1; to nfile = 0; for psxBios_firstfile() { // 42 Starts numbering slots in the right position."
-rw-r--r--libpcsxcore/psxbios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c
index ee307e3..59471f1 100644
--- a/libpcsxcore/psxbios.c
+++ b/libpcsxcore/psxbios.c
@@ -2278,7 +2278,7 @@ void psxBios_firstfile() { // 42
if (pa0) {
strcpy(ffile, pa0);
pfile = ffile+5;
- nfile = 1;
+ nfile = 0;
if (!strncmp(pa0, "bu00", 4)) {
// firstfile() calls _card_read() internally, so deliver it's event
DeliverEvent(0x11, 0x2);