mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
debug dmf not loading again
This commit is contained in:
parent
e755f1bbd0
commit
8375256ff7
1 changed files with 4 additions and 2 deletions
|
@ -928,15 +928,17 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
|||
data=newData;
|
||||
}
|
||||
|
||||
logV("length: %d. scaledLen: %d.",length,scaledLen);
|
||||
|
||||
if (ds.version>=0x1b) {
|
||||
if (cutStart<0 || cutStart>scaledLen) {
|
||||
logE("cutStart is out of range! (%d)",cutStart);
|
||||
logE("cutStart is out of range! (%d, scaledLen: %d)",cutStart,scaledLen);
|
||||
lastError="file is corrupt or unreadable at samples";
|
||||
delete[] file;
|
||||
return false;
|
||||
}
|
||||
if (cutEnd<0 || cutEnd>scaledLen) {
|
||||
logE("cutEnd is out of range! (%d)",cutEnd);
|
||||
logE("cutEnd is out of range! (%d, scaledLen: %d)",cutEnd,scaledLen);
|
||||
lastError="file is corrupt or unreadable at samples";
|
||||
delete[] file;
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue