some rearranging, undo table column bump and

default to true for older verions
This commit is contained in:
Eknous-P 2023-11-16 14:13:45 +04:00
parent 225cdead96
commit 16425817f6
3 changed files with 4 additions and 2 deletions

View file

@ -2184,6 +2184,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) {
for (int i=0; i<tchans; i++) {
if (ds.version<189) {
subSong->chanShow[i]=reader.readC();
subSong->chanShowChanOsc[i]=true;
} else { // stores 2 bools in a single char for better compat?
unsigned char tempchar=reader.readC();
subSong->chanShow[i]=tempchar&0xf;
@ -2588,6 +2589,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) {
for (int i=0; i<tchans; i++) {
if (ds.version<189) {
subSong->chanShow[i]=reader.readC();
subSong->chanShowChanOsc[i]=true;
} else {
unsigned char tempchar=reader.readC();
subSong->chanShow[i]=tempchar&0xf;

View file

@ -184,8 +184,8 @@ struct DivSubSong {
patLen(64),
ordersLen(1) {
for (int i=0; i<DIV_MAX_CHANS; i++) {
chanShowChanOsc[i]=true;
chanShow[i]=true;
chanShowChanOsc[i]=true;
chanCollapse[i]=0;
}
}