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

refactor: streamline phys constraints dumping

This commit is contained in:
Jan Laupetin
2025-07-30 18:25:01 +01:00
parent 0dfa57446c
commit d4ab0c4314
10 changed files with 119 additions and 97 deletions

View File

@@ -4,6 +4,7 @@
#include "Game/T6/T6.h"
#include "InfoString/InfoString.h"
#include "InfoStringLoaderPhysConstraintsT6.h"
#include "PhysConstraints/PhysConstraintsCommon.h"
#include <cstring>
#include <format>
@@ -24,7 +25,7 @@ namespace
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{
const auto fileName = std::format("physconstraints/{}", assetName);
const auto fileName = phys_constraints::GetFileNameForAssetName(assetName);
const auto file = m_search_path.Open(fileName);
if (!file.IsOpen())
return AssetCreationResult::NoAction();