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

refactor: do not nest asset namespaces in game namespaces

* Duplicated namespace names are kind of annoying
This commit is contained in:
Jan Laupetin
2025-08-06 00:50:35 +02:00
parent 33c09dfe61
commit 46fb919a52
336 changed files with 1430 additions and 1480 deletions

View File

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

View File

@@ -1,8 +0,0 @@
#pragma once
#include <string>
namespace T6::font_icon
{
std::string GetJsonFileNameForAssetName(const std::string& assetName);
}