giga-refactor, part 9
new format saving compatibility flags now part of own struct
This commit is contained in:
parent
9b3e6cea5b
commit
90a9a86e09
99 changed files with 1145 additions and 1047 deletions
|
|
@ -207,12 +207,12 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
|
|||
try {
|
||||
DivSong ds;
|
||||
ds.version=DIV_VERSION_XM;
|
||||
//ds.linearPitch=0;
|
||||
//ds.pitchMacroIsLinear=false;
|
||||
ds.noSlidesOnFirstTick=true;
|
||||
ds.rowResetsArpPos=true;
|
||||
ds.ignoreJumpAtEnd=false;
|
||||
ds.pitchSlideSpeed=8;
|
||||
//ds.compatFlags.linearPitch=0;
|
||||
//ds.compatFlags.pitchMacroIsLinear=false;
|
||||
ds.compatFlags.noSlidesOnFirstTick=true;
|
||||
ds.compatFlags.rowResetsArpPos=true;
|
||||
ds.compatFlags.ignoreJumpAtEnd=false;
|
||||
ds.compatFlags.pitchSlideSpeed=8;
|
||||
|
||||
logV("Extended Module");
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
|
|||
unsigned short totalChans=reader.readS();
|
||||
unsigned short patCount=reader.readS();
|
||||
ds.insLen=(unsigned short)reader.readS();
|
||||
ds.linearPitch=(reader.readS()&1)?1:0;
|
||||
ds.compatFlags.linearPitch=(reader.readS()&1)?1:0;
|
||||
ds.subsong[0]->speeds.val[0]=reader.readS();
|
||||
ds.subsong[0]->speeds.len=1;
|
||||
double bpm=(unsigned short)reader.readS();
|
||||
|
|
@ -304,7 +304,7 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
|
|||
for (int i=0; i<(totalChans+31)>>5; i++) {
|
||||
ds.system[i]=DIV_SYSTEM_ES5506;
|
||||
ds.systemFlags[i].set("amigaVol",true);
|
||||
ds.systemFlags[i].set("amigaPitch",(ds.linearPitch==0));
|
||||
ds.systemFlags[i].set("amigaPitch",(ds.compatFlags.linearPitch==0));
|
||||
ds.systemFlags[i].set("volScale",3900);
|
||||
}
|
||||
ds.systemLen=(totalChans+31)>>5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue