You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTEAssert(m_SupportedGameVersion != version::Semver200_version(), m_FileName + " does not specify a supported Cortex Command version, so it is not compatible with this version of Cortex Command (" + c_GameVersion.str() + ").\n\nPlease contact the mod author or ask for help in the CCCP discord server.");
RTEAssert(!modulePrereleaseVersionMismatch && !moduleBuildVersionMismatch, m_FileName + " was developed for prerelease build of Cortex Command v" + m_SupportedGameVersion.str() + ", this game version (v" + c_GameVersion.str() + ") is incompatible.\n\nMods developed on a prerelease must match the game version exactly.\nPlease contact the mod author or ask for help in the CCCP discord server.");
RTEAssert(!gamePrereleaseVersionMismatch && !gameBuildVersionMismatch, m_FileName + " was developed for Cortex Command v" + m_SupportedGameVersion.str() + ", this prerelease version of the game (v" + c_GameVersion.str() + ") may not support it.\n\nMods must match the game version exactly to use prerelease builds.\nPlease contact the mod author or ask for help in the CCCP discord server.");
68
-
69
-
70
-
// Game engine is the same major version as the Module
RTEAssert(majorVersionMatch && minorVersionInRange, m_FileName + " was developed for Cortex Command v" + m_SupportedGameVersion.str() + ", so this version of Cortex Command (v" + c_GameVersion.str() + ") may not support it.\nPlease contact the mod author or ask for help in the CCCP discord server.");
76
-
}
57
+
CheckSupportedGameVersion();
77
58
}
78
59
79
60
if (reader.Create(indexPath, true, progressCallback) >= 0) {
staticconst std::string contactAuthor = "Please contact the mod author or ask for help in the CCCP discord server.";
495
+
496
+
RTEAssert(m_SupportedGameVersion != version::Semver200_version(), m_FileName + " does not specify a supported Cortex Command version, so it is not compatible with this version of Cortex Command (" + c_GameVersion.str() + ").\n\n" + contactAuthor);
RTEAssert(!modulePrereleaseVersionMismatch && !moduleBuildVersionMismatch, m_FileName + " was developed for pre-release build of Cortex Command v" + m_SupportedGameVersion.str() + ", this game version (v" + c_GameVersion.str() + ") is incompatible.\n\nMods developed on a pre-release must match the game version exactly.\n" + contactAuthor);
RTEAssert(!gamePrereleaseVersionMismatch && !gameBuildVersionMismatch, m_FileName + " was developed for Cortex Command v" + m_SupportedGameVersion.str() + ", this pre-release version of the game (v" + c_GameVersion.str() + ") may not support it.\n\nMods must match the game version exactly to use pre-release builds.\n" + contactAuthor);
505
+
506
+
// Game engine is the same major version as the Module
RTEAssert(majorVersionMatch && minorVersionInRange, m_FileName + " was developed for Cortex Command v" + m_SupportedGameVersion.str() + ", so this version of Cortex Command (v" + c_GameVersion.str() + ") may not support it.\n" + contactAuthor);
Copy file name to clipboardExpand all lines: System/DataModule.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -356,6 +356,11 @@ namespace RTE {
356
356
staticconst std::string c_ClassName; //!< A string with the friendly-formatted type name of this object.
357
357
358
358
#pragma region INI Handling
359
+
/// <summary>
360
+
/// Checks the module's supported game version against the current game version to ensure compatibility.
361
+
/// </summary>
362
+
voidCheckSupportedGameVersion() const;
363
+
359
364
/// <summary>
360
365
/// If ScanFolderContents is enabled in this DataModule's Index.ini, looks for any ini files in the top-level directory of the module and reads all of them in alphabetical order.
0 commit comments