From: notaz Date: Tue, 28 Dec 2010 15:43:34 +0000 (+0200) Subject: bios: fix firstfile() return value X-Git-Tag: r2~5 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=190d491511bed7cc64dbbd755bbf438e90025f39;p=pcsx_rearmed.git bios: fix firstfile() return value it should only return dir when finds a match, bufile macro already does that. --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 005e1bb8..aa49b237 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -1869,12 +1869,8 @@ void psxBios_firstfile() { // 42 nfile = 1; if (!strncmp(Ra0, "bu00", 4)) { bufile(1); - v0 = _dir; - } - - if (!strncmp(Ra0, "bu10", 4)) { + } else if (!strncmp(Ra0, "bu10", 4)) { bufile(2); - v0 = _dir; } pc0 = ra;