Oops, this modifies the input string it seems.

Not sure if ISOs are actually case insensitive, though?
This commit is contained in:
Unknown W. Brackets 2016-05-30 00:38:20 -07:00
parent 45f7afcfa1
commit 0592f56df5
2 changed files with 3 additions and 2 deletions

View File

@ -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] == '/') {

View File

@ -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);