FIX GROOVE SAVING!!!!
This commit is contained in:
parent
d4f2130650
commit
36b321794f
1 changed files with 7 additions and 0 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue