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

refactor: merge leaderboard dumpers into a single file

This commit is contained in:
Jan Laupetin
2025-07-25 22:33:40 +01:00
parent 39fe9965d1
commit ce1f0d23c9
9 changed files with 61 additions and 69 deletions

View File

@@ -2,6 +2,7 @@
#include "Game/IW4/IW4.h"
#include "JsonLeaderboardDefLoader.h"
#include "Leaderboard/LeaderboardCommon.h"
#include <cstring>
#include <format>
@@ -22,7 +23,7 @@ namespace
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{
const auto file = m_search_path.Open(std::format("leaderboards/{}.json", assetName));
const auto file = m_search_path.Open(leaderboard::GetJsonFileNameForAsset(assetName));
if (!file.IsOpen())
return AssetCreationResult::NoAction();