mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
If we fail to auto-detect either the volume or the map version, set the one to be equal to the other
svn-id: r42386
This commit is contained in:
parent
8dd3492194
commit
848b9cda03
@ -470,6 +470,15 @@ ResourceManager::ResourceManager(int version, int maxMemory) {
|
||||
} else {
|
||||
_mapVersion = detectMapVersion();
|
||||
_volVersion = detectVolVersion();
|
||||
if (_volVersion == 0 && _mapVersion > 0) {
|
||||
warning("Volume version not detected, but map version has been detected. Setting volume version to map version");
|
||||
_volVersion = _mapVersion;
|
||||
}
|
||||
|
||||
if (_mapVersion == 0 && _volVersion > 0) {
|
||||
warning("Map version not detected, but volume version has been detected. Setting map version to volume version");
|
||||
_mapVersion = _volVersion;
|
||||
}
|
||||
}
|
||||
debug("Using resource map version %d %s", _mapVersion, versionNames[_mapVersion]);
|
||||
debug("Using volume version %d %s", _volVersion, versionNames[_volVersion]);
|
||||
|
Loading…
Reference in New Issue
Block a user