mirror of
https://github.com/SourMesen/Mesen.git
synced 2024-05-20 13:08:11 -04:00
ZIP: Fixed recent game not loading when filename stored in zip file was not UTF-8
This commit is contained in:
parent
3154f19467
commit
86326e8329
|
@ -57,7 +57,11 @@ VirtualFile::operator std::string() const
|
||||||
} else if(_path.empty()) {
|
} else if(_path.empty()) {
|
||||||
throw std::runtime_error("Cannot convert to string");
|
throw std::runtime_error("Cannot convert to string");
|
||||||
} else {
|
} else {
|
||||||
return _path + "\x1" + _innerFile;
|
if(_innerFileIndex >= 0) {
|
||||||
|
return _path + "\x1" + _innerFile + "\x1" + std::to_string(_innerFileIndex);
|
||||||
|
} else {
|
||||||
|
return _path + "\x1" + _innerFile;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue