VMManager: Clear host root on booting ISO

This commit is contained in:
Stenzek 2023-02-15 18:10:44 +10:00 committed by refractionpcsx2
parent cc55c01197
commit 51420dade4
3 changed files with 11 additions and 0 deletions

View File

@ -96,6 +96,11 @@ void Hle_SetElfPath(const char* elfFileName)
Console.WriteLn("HLE Host: Set 'host:' root path to: %s\n", hostRoot.c_str());
}
void Hle_ClearElfPath()
{
hostRoot = {};
}
namespace R3000A
{

View File

@ -86,3 +86,5 @@ namespace R3000A
} // namespace R3000A
extern void Hle_SetElfPath(const char* elfFileName);
extern void Hle_ClearElfPath();

View File

@ -905,6 +905,10 @@ bool VMManager::ApplyBootParameters(VMBootParameters params, std::string* state_
Hle_SetElfPath(s_elf_override.c_str());
EmuConfig.UseBOOT2Injection = true;
}
else
{
Hle_ClearElfPath();
}
return true;
}