Restrict the loop point feature to version 105 or above

Avoid incompatibility with Castlevania HD pack
This commit is contained in:
mkwong98 2020-12-03 19:52:50 +08:00
parent 4135965d8e
commit 5b52546cac

View file

@ -655,7 +655,7 @@ void HdPackLoader::ProcessBgmTag(vector<string> &tokens)
} else {
_data->BgmFilesById[trackId] = FolderUtilities::CombinePath(_hdPackFolder, tokens[2]);
}
if (tokens.size() >= 4) {
if (tokens.size() >= 4 && _data->Version >= 105) {
stringstream pt(tokens[3]);
uint32_t loopPoint;
pt >> loopPoint;