From 8375256ff735c94ac8279647bff9dbe816f8abb2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 10 Apr 2023 00:31:55 -0500 Subject: [PATCH] debug dmf not loading again --- src/engine/fileOps.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/fileOps.cpp b/src/engine/fileOps.cpp index c9e51bf0..a6a73743 100644 --- a/src/engine/fileOps.cpp +++ b/src/engine/fileOps.cpp @@ -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;