Fix binary modules platform name check issue

This commit is contained in:
2026-07-15 23:22:02 +02:00
parent b5d33f1d59
commit 75e11b4323
3 changed files with 36 additions and 2 deletions
+2 -2
View File
@@ -369,13 +369,13 @@ bool Scripting::LoadBinaryModules(const String& path, const String& projectFolde
const String architecture = JsonTools::GetString(document, "Architecture");
const String configuration = JsonTools::GetString(document, "Configuration");
const Char* engineConfiguration = BUILD_DEBUG ? TEXT("Debug") : (BUILD_DEVELOPMENT ? TEXT("Development") : TEXT("Release"));
if (platform != ToString(PLATFORM_TYPE) ||
if (platform != ToStringExact(PLATFORM_TYPE) ||
architecture != ToString(PLATFORM_ARCH) ||
configuration != engineConfiguration)
{
LOG(Error, "Incorrect binary modules configuration!");
LOG(Error, "Loaded: {}, {}, {}", platform, architecture, configuration);
LOG(Error, "Expected: {}, {}, {}", ToString(PLATFORM_TYPE), ToString(PLATFORM_ARCH), engineConfiguration);
LOG(Error, "Expected: {}, {}, {}", ToStringExact(PLATFORM_TYPE), ToString(PLATFORM_ARCH), engineConfiguration);
}
#endif
auto versionControlInfoMember = document.FindMember("VersionControlInfo");