2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 05:12:05 +00:00

Fix: technqiues weren't opened with the proper file path.

This commit is contained in:
LJW-Dev
2025-07-07 23:54:41 +08:00
parent aae112d37e
commit 0a520b442f

View File

@@ -21,7 +21,7 @@ namespace
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{ {
const auto fileName = std::format("techniquesets/{}.json", assetName); const auto fileName = std::format("techniquesets/{}.json", assetName);
const auto file = m_search_path.Open(assetName); const auto file = m_search_path.Open(fileName);
if (!file.IsOpen()) if (!file.IsOpen())
return AssetCreationResult::NoAction(); return AssetCreationResult::NoAction();