diff --git a/src/Linker/Game/T6/ZoneCreatorT6.cpp b/src/Linker/Game/T6/ZoneCreatorT6.cpp index 5e5c400c..01bdf996 100644 --- a/src/Linker/Game/T6/ZoneCreatorT6.cpp +++ b/src/Linker/Game/T6/ZoneCreatorT6.cpp @@ -5,6 +5,7 @@ #include "Game/T6/GameT6.h" #include "Game/T6/T6.h" #include "ObjLoading.h" +#include "Utils/StringUtils.h" #include @@ -108,7 +109,10 @@ void ZoneCreator::HandleMetadata(Zone* zone, const ZoneCreationContext& context) bool ZoneCreator::SupportsGame(const std::string& gameName) const { - return gameName == g_GameT6.GetShortName(); + auto shortName = g_GameT6.GetShortName(); + utils::MakeStringLowerCase(shortName); + + return gameName == shortName; } std::unique_ptr ZoneCreator::CreateZoneForDefinition(ZoneCreationContext& context) const diff --git a/src/Linker/Linker.cpp b/src/Linker/Linker.cpp index 9209a8df..b54edb0e 100644 --- a/src/Linker/Linker.cpp +++ b/src/Linker/Linker.cpp @@ -377,6 +377,7 @@ class LinkerImpl final : public Linker return nullptr; if (!GetGameNameFromZoneDefinition(context->m_game_name, targetName, zoneDefinition)) return nullptr; + utils::MakeStringLowerCase(context->m_game_name); if (!LoadGdtFilesFromZoneDefinition(context->m_gdt_files, zoneDefinition, gdtSearchPath)) return nullptr;