store pattern names
This commit is contained in:
parent
67ec998196
commit
cda18d32b3
4 changed files with 24 additions and 6 deletions
|
|
@ -37,8 +37,8 @@
|
|||
warnings+=(String("\n")+x); \
|
||||
}
|
||||
|
||||
#define DIV_VERSION "0.5.7pre2"
|
||||
#define DIV_ENGINE_VERSION 50
|
||||
#define DIV_VERSION "0.5.7pre3"
|
||||
#define DIV_ENGINE_VERSION 51
|
||||
|
||||
enum DivStatusView {
|
||||
DIV_STATUS_NOTHING=0,
|
||||
|
|
|
|||
|
|
@ -986,6 +986,10 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) {
|
|||
pat->data[j][5+(k<<1)]=reader.readS();
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.version>=51) {
|
||||
pat->name=reader.readString();
|
||||
}
|
||||
}
|
||||
|
||||
if (reader.tell()<reader.size()) {
|
||||
|
|
@ -1337,6 +1341,8 @@ SafeWriter* DivEngine::saveFur() {
|
|||
w->writeS(pat->data[j][3]); // volume
|
||||
w->write(&pat->data[j][4],2*song.pat[i>>16].effectRows*2); // effects
|
||||
}
|
||||
|
||||
w->writeString(pat->name,false);
|
||||
}
|
||||
|
||||
/// POINTERS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue