FIX GROOVE SAVING!!!!

This commit is contained in:
tildearrow 2025-11-23 02:25:10 -05:00
parent d4f2130650
commit 36b321794f

View file

@ -1686,6 +1686,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
// read song comments
if (commentPtr) {
logD("reading song comments...");
if (!reader.seek(commentPtr,SEEK_SET)) {
logE("couldn't seek to song comments!");
lastError=fmt::sprintf("couldn't seek to song comments!");
@ -2721,6 +2722,12 @@ SafeWriter* DivEngine::saveFur(bool notPrimary) {
assetDirPtr[2]=w->tell();
putAssetDirData(w,song.sampleDir);
/// GROOVES
for (DivGroovePattern& i: song.grooves) {
groovePtr.push_back(w->tell());
i.putData(w);
}
/// INSTRUMENT
insPtr.reserve(song.insLen);
for (int i=0; i<song.insLen; i++) {