diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index f5b488d7f7..e11eb0b3f7 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -503,25 +503,30 @@ namespace R3000A IOManDir* dir = NULL; const std::string path = Ra0; - int err = HostDir::open(&dir, path); + if (is_host(path)) + { + int err = HostDir::open(&dir, path); - if (err != 0 || !dir) - { - if (err == 0) - err = -IOP_EIO; - if (dir) - dir->close(); - v0 = err; - } - else - { - v0 = allocfd(dir); - if ((s32)v0 < 0) - dir->close(); + if (err != 0 || !dir) + { + if (err == 0) + err = -IOP_EIO; + if (dir) + dir->close(); + v0 = err; + } + else + { + v0 = allocfd(dir); + if ((s32)v0 < 0) + dir->close(); + } + + pc = ra; + return 1; } - pc = ra; - return 1; + return 0; } int dclose_HLE()