2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-06 00:37:26 +00:00

refactor: streamline tracer dumper

This commit is contained in:
Jan Laupetin
2025-07-30 23:29:08 +01:00
parent ea1c232164
commit d05f4fd43e
11 changed files with 207 additions and 180 deletions

View File

@@ -4,12 +4,14 @@
#include "Game/T6/T6.h"
#include "InfoString/InfoString.h"
#include "InfoStringLoaderTracerT6.h"
#include "Tracer/TracerCommon.h"
#include <cstring>
#include <format>
#include <iostream>
using namespace T6;
using namespace ::tracer;
namespace
{
@@ -24,7 +26,7 @@ namespace
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{
const auto fileName = std::format("tracer/{}", assetName);
const auto fileName = GetFileNameForAssetName(assetName);
const auto file = m_search_path.Open(fileName);
if (!file.IsOpen())
return AssetCreationResult::NoAction();