VirtFS: Normalize leading slashes in index.

Otherwise, we might consider "/x" and "x" to be different files, and fail
to use the handler properly.
This commit is contained in:
Unknown W. Brackets
2016-05-29 22:13:33 -07:00
parent a835c4aa8f
commit 9f668a1d31
2 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ public:
private:
void LoadFileListIndex();
int getFileListIndex(std::string& fileName);
int getFileListIndex(const std::string &fileName);
int getFileListIndex(u32 accessBlock, u32 accessSize, bool blockMode = false);
std::string GetLocalPath(std::string localpath);