From 947b7add5e69ddad9b4f3d2503eef7959019bd4b Mon Sep 17 00:00:00 2001 From: Zeta Date: Tue, 14 Nov 2023 04:17:05 -0500 Subject: [PATCH] Bump DIV_VERSION to 188, since we added a new compatibiltiy flag (Also adjust the file save/load to use that version) --- src/engine/engine.h | 2 +- src/engine/fileOps.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/engine.h b/src/engine/engine.h index 43af4127f..73aecf0ef 100644 --- a/src/engine/engine.h +++ b/src/engine/engine.h @@ -55,7 +55,7 @@ class DivWorkPool; #define DIV_UNSTABLE #define DIV_VERSION "dev187" -#define DIV_ENGINE_VERSION 187 +#define DIV_ENGINE_VERSION 188 // for imports #define DIV_VERSION_MOD 0xff01 #define DIV_VERSION_FC 0xff02 diff --git a/src/engine/fileOps.cpp b/src/engine/fileOps.cpp index 3cb2dce79..a13a1c8e4 100644 --- a/src/engine/fileOps.cpp +++ b/src/engine/fileOps.cpp @@ -1873,7 +1873,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) { if (ds.version<184) { ds.resetArpPhaseOnNewNote=false; } - if (ds.version<187) { + if (ds.version<188) { ds.ceilVolumeScaling=false; } ds.isDMF=false; @@ -2412,7 +2412,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) { } else { reader.readC(); } - if (ds.version>=187) { + if (ds.version>=188) { ds.ceilVolumeScaling=reader.readC(); } else { reader.readC();