From 12f09ed070665b03be28933a92147094e3f69054 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 9 Nov 2012 13:39:34 +0100 Subject: [PATCH] Some games appear to use host0 as current directory ? --- Core/FileSystems/MetaFileSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/FileSystems/MetaFileSystem.cpp b/Core/FileSystems/MetaFileSystem.cpp index 3bdc16e9a7..3427ceef4b 100644 --- a/Core/FileSystems/MetaFileSystem.cpp +++ b/Core/FileSystems/MetaFileSystem.cpp @@ -31,6 +31,11 @@ IFileSystem *MetaFileSystem::GetHandleOwner(u32 handle) bool MetaFileSystem::MapFilePath(std::string inpath, std::string &outpath, IFileSystem **system) { + // host0 HACK + // need to figure out what to do about xxx:./... paths - is there a current dir per drive? + if (!inpath.compare(0, 8, "host0:./")) + inpath = currentDirectory + inpath.substr(7); + for (size_t i = 0; i < fileSystems.size(); i++) { int prefLen = fileSystems[i].prefix.size();