mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Merge pull request #398 from Laupetin/fix/linux-folder-file-capitalization
fix: linux folder file capitalization
This commit is contained in:
commit
aab510c917
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -569,7 +569,7 @@ namespace
|
|||||||
void DumpXModelExportLod(const XModelCommon& common, const AssetDumpingContext& context, const XAssetInfo<XModel>* asset, const unsigned lod)
|
void DumpXModelExportLod(const XModelCommon& common, const AssetDumpingContext& context, const XAssetInfo<XModel>* asset, const unsigned lod)
|
||||||
{
|
{
|
||||||
const auto* model = asset->Asset();
|
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)
|
if (!assetFile)
|
||||||
return;
|
return;
|
||||||
@ -664,13 +664,13 @@ namespace
|
|||||||
switch (ObjWriting::Configuration.ModelOutputFormat)
|
switch (ObjWriting::Configuration.ModelOutputFormat)
|
||||||
{
|
{
|
||||||
case ObjWriting::Configuration_t::ModelOutputFormat_e::XMODEL_EXPORT:
|
case ObjWriting::Configuration_t::ModelOutputFormat_e::XMODEL_EXPORT:
|
||||||
return ".XMODEL_EXPORT";
|
return ".xmodel_export";
|
||||||
case ObjWriting::Configuration_t::ModelOutputFormat_e::OBJ:
|
case ObjWriting::Configuration_t::ModelOutputFormat_e::OBJ:
|
||||||
return ".OBJ";
|
return ".obj";
|
||||||
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLTF:
|
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLTF:
|
||||||
return ".GLTF";
|
return ".gltf";
|
||||||
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLB:
|
case ObjWriting::Configuration_t::ModelOutputFormat_e::GLB:
|
||||||
return ".GLB";
|
return ".glb";
|
||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user