giga-refactor, part 21
store channel colors!
This commit is contained in:
parent
fea3bab550
commit
c3394594a6
2 changed files with 39 additions and 15 deletions
|
|
@ -512,6 +512,10 @@ bool DivSubSong::readData(SafeReader& reader, int version, int chans) {
|
|||
for (int i=0; i<chans; i++) {
|
||||
chanShortName[i]=reader.readString();
|
||||
}
|
||||
|
||||
for (int i=0; i<chans; i++) {
|
||||
chanColor[i]=reader.readI();
|
||||
}
|
||||
} else {
|
||||
if (memcmp(magic,"SONG",4)!=0) {
|
||||
logE("invalid subsong header!");
|
||||
|
|
@ -645,6 +649,10 @@ void DivSubSong::putData(SafeWriter* w, int chans) {
|
|||
w->writeString(chanShortName[i],false);
|
||||
}
|
||||
|
||||
for (int i=0; i<chans; i++) {
|
||||
w->writeI(chanColor[i]);
|
||||
}
|
||||
|
||||
blockEndSeek=w->tell();
|
||||
w->seek(blockStartSeek,SEEK_SET);
|
||||
w->writeI(blockEndSeek-blockStartSeek-4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue