HostFS: Add is_host check in the dopen_HLE method

This commit is contained in:
Francisco Javier Trujillo Mata 2021-04-27 11:23:11 +02:00 committed by refractionpcsx2
parent 6902ce007a
commit b2618ba148
1 changed files with 21 additions and 16 deletions

View File

@ -503,6 +503,8 @@ namespace R3000A
IOManDir* dir = NULL;
const std::string path = Ra0;
if (is_host(path))
{
int err = HostDir::open(&dir, path);
if (err != 0 || !dir)
@ -524,6 +526,9 @@ namespace R3000A
return 1;
}
return 0;
}
int dclose_HLE()
{
s32 dir = a0;