From 190d491511bed7cc64dbbd755bbf438e90025f39 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 28 Dec 2010 17:43:34 +0200 Subject: [PATCH] bios: fix firstfile() return value it should only return dir when finds a match, bufile macro already does that. --- libpcsxcore/psxbios.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.39.2