diff options
author | gameblabla | 2019-07-21 01:26:10 +0200 |
---|---|---|
committer | gameblabla | 2019-07-21 01:26:10 +0200 |
commit | 44e9fa8b2308539ad19fb948d64e2339adb7835a (patch) | |
tree | 16cff7688b120dd5a18300b25b4856bfccee2568 | |
parent | 8254b5a7f550a9f859ce2211560d8ca2f12a32ca (diff) | |
download | pcsx_rearmed-44e9fa8b2308539ad19fb948d64e2339adb7835a.tar.gz pcsx_rearmed-44e9fa8b2308539ad19fb948d64e2339adb7835a.tar.bz2 pcsx_rearmed-44e9fa8b2308539ad19fb948d64e2339adb7835a.zip |
psxbios : Fix a few mistakes :
- Remove extra ffile, pfile.. as it is declared elsewhere.
- Remove extra condition as it's already being handled by pad_stopped.
- Remove n variable from function (pcsx4all did this) as it's useless
and documentation doesn't seem to specify it's needed.
-rw-r--r-- | libpcsxcore/psxbios.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 1f6c342..8b9c99a 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -865,7 +865,6 @@ void psxBios_bcmp() { // 0x29 void psxBios_memcpy() { // 0x2a char *p1 = (char *)Ra0, *p2 = (char *)Ra1; - s32 n=0; v0 = a0; if (a0 == 0 || a2 > 0x7FFFFFFF) { @@ -873,7 +872,6 @@ void psxBios_memcpy() { // 0x2a return; } while ((s32)a2-- > 0) { - n++; *p1++ = *p2++; } a2 = 0; @@ -1935,10 +1933,8 @@ void psxBios_StopPAD() { // 14 PSXBIOS_LOG("psxBios_%s\n", biosB0n[0x14]); #endif pad_stopped = 1; - if (pad_buf == 0){ pad_buf1 = NULL; pad_buf2 = NULL; - } pc0 = ra; } @@ -2218,9 +2214,6 @@ void psxBios_puts() { // 3e/3f pc0 = ra; } -char ffile[64], *pfile; -int nfile; - /* To avoid any issues with different behaviour when using the libc's own strlen instead. * We want to mimic the PSX's behaviour in this case for bufile. */ |