refactor: streamline vehicle dumping

This commit is contained in:
Jan Laupetin committed 2025-07-31 19:28:42 +01:00
1 parent d05f4fd43e
commit ab118f3528
9 files changed
+130 -103

No files matched your search

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