Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
ZIP: Fixed recent game not loading when filename stored in zip file w…
Browse files Browse the repository at this point in the history
…as not UTF-8
  • Loading branch information
SourMesen committed Jun 30, 2020
1 parent 3154f19 commit 86326e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Core/VirtualFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ VirtualFile::operator std::string() const
} else if(_path.empty()) {
throw std::runtime_error("Cannot convert to string");
} else {
return _path + "\x1" + _innerFile;
if(_innerFileIndex >= 0) {
return _path + "\x1" + _innerFile + "\x1" + std::to_string(_innerFileIndex);
} else {
return _path + "\x1" + _innerFile;
}
}
}

Expand Down

0 comments on commit 86326e8

Please sign in to comment.