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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user