2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-26 14:32:06 +00:00

chore: normalize asset names before adding to asset pools

This commit is contained in:
Jan
2024-05-11 12:23:49 +02:00
parent b59bd01280
commit a9488b8152
8 changed files with 40 additions and 35 deletions

View File

@@ -2,6 +2,8 @@
#include "Utils/StringUtils.h"
#include <algorithm>
IndirectAssetReference::IndirectAssetReference()
: m_type(-1)
{
@@ -90,3 +92,12 @@ XAssetInfoGeneric::XAssetInfoGeneric(const asset_type_t type,
m_zone(zone)
{
}
std::string XAssetInfoGeneric::NormalizeAssetName(std::string input)
{
utils::MakeStringLowerCase(input);
std::ranges::replace(input, '\\', '/');
return input;
}