- 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.
void psxBios_memcpy() { // 0x2a
char *p1 = (char *)Ra0, *p2 = (char *)Ra1;
- s32 n=0;
v0 = a0;
if (a0 == 0 || a2 > 0x7FFFFFFF)
{
return;
}
while ((s32)a2-- > 0) {
- n++;
*p1++ = *p2++;
}
a2 = 0;
PSXBIOS_LOG("psxBios_%s\n", biosB0n[0x14]);
#endif
pad_stopped = 1;
- if (pad_buf == 0){
pad_buf1 = NULL;
pad_buf2 = NULL;
- }
pc0 = ra;
}
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. */