diff --git a/Core/PSPLoaders.cpp b/Core/PSPLoaders.cpp index e40e466358..8d11538045 100644 --- a/Core/PSPLoaders.cpp +++ b/Core/PSPLoaders.cpp @@ -395,6 +395,7 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) { ms_path = "umd0:/"; } + Path dir; if (!PSP_CoreParameter().mountRoot.empty()) { // We don't want to worry about .. and cwd and such. const Path rootNorm = NormalizePath(PSP_CoreParameter().mountRoot); @@ -423,15 +424,10 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) { file = filepath + "/" + file; path = rootNorm.ToString(); pspFileSystem.SetStartingDirectory(filepath); + dir = Path(path); } else { pspFileSystem.SetStartingDirectory(ms_path); - } - - Path dir; - if (full_path.Type() == PathType::CONTENT_URI) { dir = full_path.NavigateUp(); - } else { - dir = Path(path); } std::shared_ptr fs = std::shared_ptr(new DirectoryFileSystem(&pspFileSystem, dir, FileSystemFlags::SIMULATE_FAT32 | FileSystemFlags::CARD));