2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-20 04:02:05 +00:00

chore: dump font icons as json instead of csv

This commit is contained in:
Jan Laupetin
2025-07-22 22:48:48 +01:00
parent 745f545342
commit 9f4727789a
13 changed files with 483 additions and 265 deletions

View File

@@ -0,0 +1,23 @@
#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