mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
and now fix fcm9/dkc loading
This commit is contained in:
parent
6efef65b48
commit
5b495ec866
1 changed files with 2 additions and 2 deletions
|
@ -1602,7 +1602,7 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si
|
||||||
DivSubSong* s = ds.subsong[i];
|
DivSubSong* s = ds.subsong[i];
|
||||||
|
|
||||||
int framesLen=reader.readI();
|
int framesLen=reader.readI();
|
||||||
if (framesLen<=1 || framesLen>=256) {
|
if (framesLen<=1 || framesLen>256) {
|
||||||
logE("frames out of range");
|
logE("frames out of range");
|
||||||
lastError = "frames out of range";
|
lastError = "frames out of range";
|
||||||
delete[] file;
|
delete[] file;
|
||||||
|
@ -1625,7 +1625,7 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len, bool dnft, bool dnft_si
|
||||||
}
|
}
|
||||||
|
|
||||||
int patLen=reader.readI();
|
int patLen=reader.readI();
|
||||||
if (patLen<1 || patLen>=256) {
|
if (patLen<1 || patLen>256) {
|
||||||
logE("pattern length out of range");
|
logE("pattern length out of range");
|
||||||
lastError = "pattern length out of range";
|
lastError = "pattern length out of range";
|
||||||
delete[] file;
|
delete[] file;
|
||||||
|
|
Loading…
Reference in a new issue