Add json dumper as a replacement for csv dumper

This commit is contained in:
Jan
2023-12-09 14:15:59 +01:00
parent 55f97267ff
commit 4d86734f21
10 changed files with 249 additions and 50 deletions

View File

@ -11,10 +11,8 @@ namespace T6::sound
"devraw/",
};
_NODISCARD std::string GetAssetFilename(const std::string& basePath, std::string outputFileName, const std::string& extension)
_NODISCARD std::string GetAssetFilename(std::string outputFileName, const std::string& extension)
{
fs::path assetPath(basePath);
std::replace(outputFileName.begin(), outputFileName.end(), '\\', '/');
for (const auto& droppedPrefix : PREFIXES_TO_DROP)
{
@ -25,7 +23,7 @@ namespace T6::sound
}
}
assetPath.append(outputFileName);
fs::path assetPath(outputFileName);
if (!extension.empty())
assetPath.concat(extension);