2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00:00

refactor: restructure image dumper

This commit is contained in:
Jan Laupetin
2025-07-28 23:15:45 +01:00
parent 9a6f0c8919
commit 22dbf57269
17 changed files with 245 additions and 240 deletions

View File

@@ -0,0 +1,15 @@
#include "ImageCommon.h"
#include <algorithm>
#include <format>
namespace image
{
std::string GetFileNameForAsset(std::string assetName, const std::string& extension)
{
std::string cleanAssetName(std::move(assetName));
std::ranges::replace(cleanAssetName, '*', '_');
return std::format("images/{}{}", cleanAssetName, extension);
}
} // namespace image

View File

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