From: <sv...@op...> - 2024-11-12 22:44:01
|
Author: sagamusix Date: Tue Nov 12 23:43:54 2024 New Revision: 22172 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22172 Log: [Mod] IT: Maybe IT 2.14 can actually save files without edit history. I am finding quite a few of them, but they have a valid edit timer... Modify the detection accordingly. Modified: trunk/OpenMPT/soundlib/Load_it.cpp Modified: trunk/OpenMPT/soundlib/Load_it.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_it.cpp Tue Nov 12 23:33:45 2024 (r22171) +++ trunk/OpenMPT/soundlib/Load_it.cpp Tue Nov 12 23:43:54 2024 (r22172) @@ -1266,7 +1266,7 @@ } else if(fileHeader.cwtv == 0 && madeWithTracker.empty()) { madeWithTracker = UL_("Unknown"); - } else if(fileHeader.cwtv >= 0x0208 && fileHeader.cwtv <= 0x0214 && m_FileHistory.empty() && madeWithTracker.empty()) + } else if(fileHeader.cwtv >= 0x0208 && fileHeader.cwtv <= 0x0214 && !fileHeader.reserved && m_FileHistory.empty() && madeWithTracker.empty()) { // Any file made with IT starting from v2.07 onwards should have an edit history madeWithTracker = UL_("Unknown"); |