fix: make all game names be supported in lowercase instead of only t6

This commit is contained in:
Jan
2024-08-12 10:20:04 +02:00
parent 254918acca
commit fc5853eaa4
4 changed files with 20 additions and 4 deletions

View File

@ -3,6 +3,7 @@
#include "Game/IW5/GameAssetPoolIW5.h"
#include "Game/IW5/GameIW5.h"
#include "ObjLoading.h"
#include "Utils/StringUtils.h"
#include <iostream>
@ -58,7 +59,10 @@ void ZoneCreator::CreateZoneAssetPools(Zone* zone) const
bool ZoneCreator::SupportsGame(const std::string& gameName) const
{
return gameName == g_GameIW5.GetShortName();
auto shortName = g_GameIW5.GetShortName();
utils::MakeStringLowerCase(shortName);
return gameName == shortName;
}
std::unique_ptr<Zone> ZoneCreator::CreateZoneForDefinition(ZoneCreationContext& context) const