Merge pull request #398 from Laupetin/fix/linux-folder-file-capitalization

fix: linux folder file capitalization
This commit is contained in:
Jan 2025-04-05 13:07:14 +02:00 committed by GitHub
commit aab510c917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -3,6 +3,7 @@
#include "SearchPath/IWD.h"
#include "SearchPath/SearchPathFilesystem.h"
#include "SearchPath/SearchPaths.h"
#include "Utils/StringUtils.h"
#include <cassert>
#include <cstdint>
@ -215,7 +216,10 @@ namespace
{
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))
hasSearchPath = true;
}

View File

@ -569,7 +569,7 @@ namespace
void DumpXModelExportLod(const XModelCommon& common, const AssetDumpingContext& context, const XAssetInfo<XModel>* asset, const unsigned lod)
{
const auto* model = asset->Asset();
const auto assetFile = context.OpenAssetFile(GetFileNameForLod(model->name, lod, ".XMODEL_EXPORT"));
const auto assetFile = context.OpenAssetFile(GetFileNameForLod(model->name, lod, ".xmodel_export"));
if (!assetFile)
return;
@ -664,13 +664,13 @@ namespace
switch (ObjWriting::Configuration.ModelOutputFormat)
{
case ObjWriting::Configuration_t::ModelOutputFormat_e::XMODEL_EXPORT:
return ".XMODEL_EXPORT";
return ".xmodel_export";
case ObjWriting::Configuration_t::ModelOutputFormat_e::OBJ:
return ".OBJ";
return ".obj";
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLTF:
return ".GLTF";
return ".gltf";
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLB:
return ".GLB";
return ".glb";
default:
assert(false);
return "";