Support for TFEv1 files
This commit is contained in:
parent
4bc4bfac32
commit
ad160b5d88
3 changed files with 337 additions and 124 deletions
|
|
@ -153,11 +153,13 @@ bool DivEngine::load(unsigned char* f, size_t slen, const char* nameHint) {
|
|||
} else if (memcmp(file,DIV_FC13_MAGIC,4)==0 || memcmp(file,DIV_FC14_MAGIC,4)==0) {
|
||||
return loadFC(file,len);
|
||||
} else if (memcmp(file,DIV_TFM_MAGIC,8)==0) {
|
||||
return loadTFM(file,len);
|
||||
return loadTFMv2(file,len);
|
||||
}
|
||||
|
||||
// step 3: try loading as .mod
|
||||
if (loadMod(file,len)) {
|
||||
// step 3: try loading as .mod or TFEv1 (if the file extension matches)
|
||||
if (extS==".tfe") {
|
||||
return loadTFMv1(file,len);
|
||||
} else if (loadMod(file,len)) {
|
||||
delete[] f;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue