FIX CRITICAL ISSUES WHEN LOADING
- compat flags not loading - song comment disappearing
This commit is contained in:
parent
87da7a5f40
commit
d4f2130650
2 changed files with 74 additions and 5 deletions
|
|
@ -1666,7 +1666,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
|
|||
|
||||
// read compatibility flags
|
||||
if (compatFlagPtr) {
|
||||
DivConfig c;
|
||||
logD("reading compatibility flags...");
|
||||
if (!reader.seek(compatFlagPtr,SEEK_SET)) {
|
||||
logE("couldn't seek to compat flags!");
|
||||
lastError=fmt::sprintf("couldn't seek to compat flags!");
|
||||
|
|
@ -1675,7 +1675,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!song.compatFlags.readData(reader)) {
|
||||
if (!ds.compatFlags.readData(reader)) {
|
||||
logE("invalid compat flag header!");
|
||||
lastError="invalid compat flag header!";
|
||||
ds.unload();
|
||||
|
|
@ -1704,7 +1704,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
|
|||
}
|
||||
reader.readI();
|
||||
|
||||
song.notes=reader.readString();
|
||||
ds.notes=reader.readString();
|
||||
}
|
||||
|
||||
// read grooves
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue