mirror of https://github.com/PCSX2/pcsx2.git
VMManager: Clear host root on booting ISO
This commit is contained in:
parent
cc55c01197
commit
51420dade4
|
@ -96,6 +96,11 @@ void Hle_SetElfPath(const char* elfFileName)
|
||||||
Console.WriteLn("HLE Host: Set 'host:' root path to: %s\n", hostRoot.c_str());
|
Console.WriteLn("HLE Host: Set 'host:' root path to: %s\n", hostRoot.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Hle_ClearElfPath()
|
||||||
|
{
|
||||||
|
hostRoot = {};
|
||||||
|
}
|
||||||
|
|
||||||
namespace R3000A
|
namespace R3000A
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -86,3 +86,5 @@ namespace R3000A
|
||||||
} // namespace R3000A
|
} // namespace R3000A
|
||||||
|
|
||||||
extern void Hle_SetElfPath(const char* elfFileName);
|
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());
|
Hle_SetElfPath(s_elf_override.c_str());
|
||||||
EmuConfig.UseBOOT2Injection = true;
|
EmuConfig.UseBOOT2Injection = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Hle_ClearElfPath();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue