Skip to content
Permalink
Browse files

Do not set the result since it is already setting result via bufile:…

… fixes a regression in Castlevania SOTN and other games. Also, reverting cd get status function to 1 rather than -1, it needs a better implementation anyway. I'll need to test it against a more variety of games
  • Loading branch information...
gameblabla committed Feb 12, 2019
1 parent 1a42d4e commit b31b7801cbf39d8f4278516e477a683244bbc211
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/psxbios.cpp
@@ -1817,10 +1817,10 @@ void psxBios__boot(void) // a0
memset(psxR, 0, 0x80000); // Bios memory
}

/* TODO FIXME : Not compliant */
/* TODO FIXME : Not compliant. -1 indicates failure but using 1 for now. */
void psxBios_get_cd_status(void) //a6
{
v0 = -1;
v0 = 1;
pc0 = ra;
}

@@ -2517,12 +2517,10 @@ void psxBios_nextfile(void) { // 43

if (!strncmp(ffile, "bu00", 4)) {
bufile(1);
v0 = a0;
}

if (!strncmp(ffile, "bu10", 4)) {
bufile(2);
v0 = a0;
}

pc0 = ra;

0 comments on commit b31b780

Please sign in to comment.
You can’t perform that action at this time.