S3M import: we load samples
This commit is contained in:
parent
b9e14e8b1f
commit
7ffbaf65b7
2 changed files with 114 additions and 12 deletions
|
|
@ -139,7 +139,7 @@ bool DivEngine::load(unsigned char* f, size_t slen, const char* nameHint) {
|
|||
len=slen;
|
||||
}
|
||||
|
||||
// step 2: try loading as .fur or .dmf
|
||||
// step 2: try loading as .fur, .dmf, or another magic-ful format
|
||||
if (memcmp(file,DIV_DMF_MAGIC,16)==0) {
|
||||
return loadDMF(file,len);
|
||||
} else if (memcmp(file,DIV_FTM_MAGIC,18)==0) {
|
||||
|
|
@ -154,6 +154,10 @@ bool DivEngine::load(unsigned char* f, size_t slen, const char* nameHint) {
|
|||
return loadFC(file,len);
|
||||
} else if (memcmp(file,DIV_TFM_MAGIC,8)==0) {
|
||||
return loadTFMv2(file,len);
|
||||
} else if (len>=48) {
|
||||
if (memcmp(&file[0x2c],DIV_S3M_MAGIC,4)==0) {
|
||||
return loadS3M(file,len);
|
||||
}
|
||||
}
|
||||
|
||||
// step 3: try loading as .mod or TFEv1 (if the file extension matches)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue