mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-04 11:53:31 +01:00
Added support for HostFs when booting an iso
This commit is contained in:
1 parent
3ca7d2d626
commit
b5f8ef0106
3 files changed
+11
No files matched your search
@@ -102,6 +102,12 @@ void Hle_SetElfPath(const char* elfFileName)
|
||||
Console.WriteLn("HLE Host: Set 'host:' root path to: %s\n", hostRoot.c_str());
|
||||
}
|
||||
|
||||
void Hle_SetIsoPath(const char* isoFilename)
|
||||
{
|
||||
hostRoot = Path::ToNativePath(Path::GetDirectory(isoFilename));
|
||||
Console.WriteLn("HLE Host: Set 'host:' root path to: %s\n", hostRoot.c_str());
|
||||
}
|
||||
|
||||
void Hle_ClearElfPath()
|
||||
{
|
||||
hostRoot = {};
|
||||
|
||||
@@ -87,5 +87,6 @@ namespace R3000A
|
||||
} // namespace R3000A
|
||||
|
||||
extern void Hle_SetElfPath(const char* elfFileName);
|
||||
extern void Hle_SetIsoPath(const char* isoFilename);
|
||||
extern void Hle_ClearElfPath();
|
||||
|
||||
@@ -1190,6 +1190,10 @@ bool VMManager::Initialize(VMBootParameters boot_params)
|
||||
|
||||
Hle_SetElfPath(s_elf_override.c_str());
|
||||
}
|
||||
else if (CDVDsys_GetSourceType() == CDVD_SourceType::Iso)
|
||||
{
|
||||
Hle_SetIsoPath(CDVDsys_GetFile(CDVDsys_GetSourceType()).c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
Hle_ClearElfPath();
|
||||
|
||||
Reference in new issue
Block a user