mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Try a compromise with the paths
This commit is contained in:
parent
ffe64c2305
commit
4fea6eeaab
1 changed files with 8 additions and 1 deletions
|
@ -427,7 +427,14 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
|
|||
pspFileSystem.SetStartingDirectory(ms_path);
|
||||
}
|
||||
|
||||
std::shared_ptr<IFileSystem> fs = std::shared_ptr<IFileSystem>(new DirectoryFileSystem(&pspFileSystem, full_path.NavigateUp(), FileSystemFlags::SIMULATE_FAT32 | FileSystemFlags::CARD));
|
||||
Path dir;
|
||||
if (full_path.Type() == PathType::CONTENT_URI) {
|
||||
dir = full_path.NavigateUp();
|
||||
} else {
|
||||
dir = Path(path);
|
||||
}
|
||||
|
||||
std::shared_ptr<IFileSystem> fs = std::shared_ptr<IFileSystem>(new DirectoryFileSystem(&pspFileSystem, dir, FileSystemFlags::SIMULATE_FAT32 | FileSystemFlags::CARD));
|
||||
pspFileSystem.Mount("umd0:", fs);
|
||||
|
||||
std::string finalName = ms_path + file;
|
||||
|
|
Loading…
Add table
Reference in a new issue