mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-06 08:47:26 +00:00
refactor: streamline phys constraints dumping
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user