From: <sv...@op...> - 2024-12-12 21:16:42
|
Author: sagamusix Date: Thu Dec 12 22:16:19 2024 New Revision: 22528 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22528 Log: [Imp] TCB: Fill in "made with" tracker information based on new/old format. [Ref] Whitespace cleanup. Modified: trunk/OpenMPT/soundlib/Load_cba.cpp trunk/OpenMPT/soundlib/Load_tcb.cpp Modified: trunk/OpenMPT/soundlib/Load_cba.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_cba.cpp Thu Dec 12 22:15:42 2024 (r22527) +++ trunk/OpenMPT/soundlib/Load_cba.cpp Thu Dec 12 22:16:19 2024 (r22528) @@ -145,7 +145,7 @@ else if(command == 0x18) m.SetEffectCommand(CMD_RETRIG, param); else if(command >= 0x10 && command <= 0x1E) - m.SetEffectCommand(CMD_MODCMDEX, static_cast<ModCommand::PARAM>(((command << 4) + 0x10) | std::min(param ,uint8(0x0F)))); + m.SetEffectCommand(CMD_MODCMDEX, static_cast<ModCommand::PARAM>(((command << 4) + 0x10) | std::min(param, uint8(0x0F)))); else if(command == 0x1F) m.SetEffectCommand(CMD_SPEED, param); else if(command == 0x20) Modified: trunk/OpenMPT/soundlib/Load_tcb.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_tcb.cpp Thu Dec 12 22:15:42 2024 (r22527) +++ trunk/OpenMPT/soundlib/Load_tcb.cpp Thu Dec 12 22:16:19 2024 (r22528) @@ -17,7 +17,7 @@ struct TCBFileHeader { - char magic[8]; // "AN COOL." (new) or "AN COOL!" (old - even TCB Tracker 1.0 cannot load these files) + char magic[8]; // "AN COOL." (new) or "AN COOL!" (early TCB Tracker beta versions; not even TCB Tracker 1.0 can read these files) uint32be numPatterns; uint8 tempo; uint8 unused1; @@ -182,9 +182,9 @@ m_szNames[smp] = mpt::String::ReadBuf(mpt::String::spacePadded, instrNames[smp - 1]); } - m_modFormat.formatName = newFormat ? UL_("TCB Tracker (New Format)") : UL_("TCB Tracker (Old Format)"); + m_modFormat.formatName = newFormat ? UL_("TCB Tracker") : UL_("TCB Tracker (Beta Format)"); m_modFormat.type = UL_("mod"); - m_modFormat.madeWithTracker = UL_("TCB Tracker"); + m_modFormat.madeWithTracker = newFormat ? UL_("TCB Tracker 1.0 - 2.0") : UL_("TCB Tracker Beta"); m_modFormat.charset = mpt::Charset::AtariST; return true; |