Make filesystem prefix matching case fold.

Even Ms0:/, disC0:/ and HoSt0:/ etc. work.
This commit is contained in:
Unknown W. Brackets committed 2013-01-09 00:57:44 -08:00
1 parent 3e3e9b761f
commit 6327c6e629
2 files changed
+2 -9

No files matched your search

-7
View File
@@ -64,10 +64,6 @@ bool Load_PSP_ISO(const char *filename, std::string *error_string)
pspFileSystem.Mount("umd1:", umd2);
pspFileSystem.Mount("disc0:", umd2);
pspFileSystem.Mount("umd:", umd2);
pspFileSystem.Mount("UMD0:", umd2);
pspFileSystem.Mount("UMD1:", umd2);
pspFileSystem.Mount("DISC0:", umd2);
pspFileSystem.Mount("UMD:", umd2);
std::string sfoPath("disc0:/PSP_GAME/PARAM.SFO");
PSPFileInfo fileInfo = pspFileSystem.GetFileInfo(sfoPath.c_str());
@@ -124,9 +120,6 @@ bool Load_PSP_ELF_PBP(const char *filename, std::string *error_string)
pspFileSystem.Mount("umd1:", umd2);
pspFileSystem.Mount("disc0:", umd2);
pspFileSystem.Mount("umd:", umd2);
pspFileSystem.Mount("UMD1:", umd2);
pspFileSystem.Mount("DISC0:", umd2);
pspFileSystem.Mount("UMD:", umd2);
}
std::string full_path = filename;