From 0592f56df5891ac11b1f5fa241c03000166787b2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 30 May 2016 00:38:20 -0700 Subject: [PATCH] Oops, this modifies the input string it seems. Not sure if ISOs are actually case insensitive, though? --- Core/FileSystems/VirtualDiscFileSystem.cpp | 2 +- Core/FileSystems/VirtualDiscFileSystem.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/FileSystems/VirtualDiscFileSystem.cpp b/Core/FileSystems/VirtualDiscFileSystem.cpp index 197d301015..74d5f4bb3c 100644 --- a/Core/FileSystems/VirtualDiscFileSystem.cpp +++ b/Core/FileSystems/VirtualDiscFileSystem.cpp @@ -249,7 +249,7 @@ std::string VirtualDiscFileSystem::GetLocalPath(std::string localpath) { return basePath + localpath; } -int VirtualDiscFileSystem::getFileListIndex(const std::string &fileName) +int VirtualDiscFileSystem::getFileListIndex(std::string &fileName) { std::string normalized; if (fileName.length() >= 1 && fileName[0] == '/') { diff --git a/Core/FileSystems/VirtualDiscFileSystem.h b/Core/FileSystems/VirtualDiscFileSystem.h index 871b594dbb..39f9e598e9 100644 --- a/Core/FileSystems/VirtualDiscFileSystem.h +++ b/Core/FileSystems/VirtualDiscFileSystem.h @@ -54,7 +54,8 @@ public: private: void LoadFileListIndex(); - int getFileListIndex(const std::string &fileName); + // Warning: modifies input string. + int getFileListIndex(std::string &fileName); int getFileListIndex(u32 accessBlock, u32 accessSize, bool blockMode = false); std::string GetLocalPath(std::string localpath);