mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-19 19:52:06 +00:00
24 lines
565 B
C++
24 lines
565 B
C++
#include "FontIconCommonT6.h"
|
|
|
|
#include "Utils/StringUtils.h"
|
|
|
|
#include <filesystem>
|
|
namespace fs = std::filesystem;
|
|
|
|
namespace T6::font_icon
|
|
{
|
|
std::string GetJsonFileNameForAssetName(const std::string& assetName)
|
|
{
|
|
std::string originalFileName(assetName);
|
|
utils::MakeStringLowerCase(originalFileName);
|
|
if (originalFileName.ends_with(".csv"))
|
|
{
|
|
fs::path p(assetName);
|
|
p.replace_extension(".json");
|
|
return p.string();
|
|
}
|
|
|
|
return assetName;
|
|
}
|
|
} // namespace T6::font_icon
|