aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2010-12-28 17:43:34 +0200
committernotaz2010-12-28 17:43:34 +0200
commit190d491511bed7cc64dbbd755bbf438e90025f39 (patch)
tree8730d8aa0dc317b64b27d18ef0d7ca6724f70e70
parent1fd1aceb4382827b39bda6fe6915e38a294534e6 (diff)
downloadpcsx_rearmed-190d491511bed7cc64dbbd755bbf438e90025f39.tar.gz
pcsx_rearmed-190d491511bed7cc64dbbd755bbf438e90025f39.tar.bz2
pcsx_rearmed-190d491511bed7cc64dbbd755bbf438e90025f39.zip
bios: fix firstfile() return value
it should only return dir when finds a match, bufile macro already does that.
-rw-r--r--libpcsxcore/psxbios.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c
index 005e1bb..aa49b23 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;