Some games appear to use host0 as current directory ?

This commit is contained in:
Henrik Rydgard 2012-11-09 13:39:34 +01:00
parent 8ae370bad9
commit 12f09ed070

View file

@ -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();