mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
don't chop off prefix when mapping path for chdir
This commit is contained in:
1 parent
ebcb7af7cc
commit
9f4680a267
2 files changed
+35
-34
No files matched your search
@@ -21,6 +21,20 @@
|
||||
|
||||
class MetaFileSystem : public IHandleAllocator, public IFileSystem
|
||||
{
|
||||
private:
|
||||
u32 current;
|
||||
struct System
|
||||
{
|
||||
std::string prefix;
|
||||
IFileSystem *system;
|
||||
};
|
||||
std::vector<System> fileSystems;
|
||||
|
||||
typedef std::map<int, std::string> currentDir_t;
|
||||
currentDir_t currentDir;
|
||||
|
||||
std::string startingDirectory;
|
||||
|
||||
public:
|
||||
MetaFileSystem()
|
||||
{
|
||||
@@ -40,7 +54,7 @@ public:
|
||||
virtual void DoState(PointerWrap &p);
|
||||
|
||||
IFileSystem *GetHandleOwner(u32 handle);
|
||||
bool MapFilePath(const std::string &inpath, std::string &outpath, IFileSystem **system);
|
||||
bool MapFilePath(const std::string &inpath, std::string &outpath, System **system);
|
||||
|
||||
// Only possible if a file system is a DirectoryFileSystem or similar.
|
||||
bool GetHostPath(const std::string &inpath, std::string &outpath);
|
||||
@@ -70,17 +84,4 @@ public:
|
||||
void SetStartingDirectory(const std::string &dir) {
|
||||
startingDirectory = dir;
|
||||
}
|
||||
private:
|
||||
u32 current;
|
||||
struct System
|
||||
{
|
||||
std::string prefix;
|
||||
IFileSystem *system;
|
||||
};
|
||||
std::vector<System> fileSystems;
|
||||
|
||||
typedef std::map<int, std::string> currentDir_t;
|
||||
currentDir_t currentDir;
|
||||
|
||||
std::string startingDirectory;
|
||||
};
|
||||
Reference in new issue
Block a user