mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Some games appear to use host0 as current directory ?
This commit is contained in:
parent
8ae370bad9
commit
12f09ed070
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ IFileSystem *MetaFileSystem::GetHandleOwner(u32 handle)
|
||||||
|
|
||||||
bool MetaFileSystem::MapFilePath(std::string inpath, std::string &outpath, IFileSystem **system)
|
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++)
|
for (size_t i = 0; i < fileSystems.size(); i++)
|
||||||
{
|
{
|
||||||
int prefLen = fileSystems[i].prefix.size();
|
int prefLen = fileSystems[i].prefix.size();
|
||||||
|
|
Loading…
Add table
Reference in a new issue