mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
VMManager: Clear host root on booting ISO
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
||||
@@ -86,3 +86,5 @@ namespace R3000A
|
||||
} // namespace R3000A
|
||||
|
||||
extern void Hle_SetElfPath(const char* elfFileName);
|
||||
extern void Hle_ClearElfPath();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user