custom tick rate for presets

This commit is contained in:
tildearrow 2022-12-04 01:11:32 -05:00
parent eb657aef18
commit d6d6743740
1 changed files with 6 additions and 0 deletions

View File

@ -1416,6 +1416,12 @@ void DivEngine::initSongWithDesc(const char* description, bool inBase64) {
song.systemFlags[index].loadFromBase64(flags.c_str());
}
song.systemLen=index;
// extra attributes
song.subsong[0]->hz=c.getDouble("tickRate",60.0);
if (song.subsong[0]->hz!=60.0) {
song.subsong[0]->customTempo=true;
}
}
void DivEngine::createNew(const char* description, String sysName, bool inBase64) {