VMManager: Clear host root on booting ISO

This commit is contained in:
Stenzek authored and refractionpcsx2 committed 2023-02-15 10:04:39 +00:00
1 parent cc55c01197
commit 51420dade4
3 files changed
+11

No files matched your search

+5
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
{
+2
View File
@@ -86,3 +86,5 @@ namespace R3000A
} // namespace R3000A
extern void Hle_SetElfPath(const char* elfFileName);
extern void Hle_ClearElfPath();
+4
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;
}