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

refactor: streamline vehicle dumping

This commit is contained in:
Jan Laupetin
2025-07-31 19:24:28 +01:00
parent d05f4fd43e
commit ab118f3528
9 changed files with 130 additions and 103 deletions

View File

@@ -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();