mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
fix: game name in linker paths must be lowercase for linux
This commit is contained in:
parent
49f0794545
commit
0366b24bd7
@ -3,6 +3,7 @@
|
|||||||
#include "SearchPath/IWD.h"
|
#include "SearchPath/IWD.h"
|
||||||
#include "SearchPath/SearchPathFilesystem.h"
|
#include "SearchPath/SearchPathFilesystem.h"
|
||||||
#include "SearchPath/SearchPaths.h"
|
#include "SearchPath/SearchPaths.h"
|
||||||
|
#include "Utils/StringUtils.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@ -215,7 +216,10 @@ namespace
|
|||||||
{
|
{
|
||||||
if (!curTemplate.CanRender(PROJECT_MASK) && curTemplate.CanRender(GAME_MASK))
|
if (!curTemplate.CanRender(PROJECT_MASK) && curTemplate.CanRender(GAME_MASK))
|
||||||
{
|
{
|
||||||
auto renderedTemplate = curTemplate.Render(m_bin_dir, m_base_dir, projectName, GameId_Names[static_cast<unsigned>(game)]);
|
std::string gameName(GameId_Names[static_cast<unsigned>(game)]);
|
||||||
|
utils::MakeStringLowerCase(gameName);
|
||||||
|
|
||||||
|
auto renderedTemplate = curTemplate.Render(m_bin_dir, m_base_dir, projectName, gameName);
|
||||||
if (AddSearchPath(addedSearchPaths, searchPaths, renderedTemplate))
|
if (AddSearchPath(addedSearchPaths, searchPaths, renderedTemplate))
|
||||||
hasSearchPath = true;
|
hasSearchPath = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user