chore: make map ents dumping add ents extension instead of replacing

This commit is contained in:
Jan 2025-04-07 22:16:08 +01:00
parent b215b22018
commit 0d35696940
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -1,6 +1,6 @@
#include "AssetDumperMapEnts.h"
#include <filesystem>
#include <format>
using namespace T6;
@ -13,10 +13,7 @@ void AssetDumperMapEnts::DumpAsset(AssetDumpingContext& context, XAssetInfo<MapE
{
const auto* mapEnts = asset->Asset();
std::filesystem::path mapEntsPath(mapEnts->name);
mapEntsPath.replace_extension("ents");
const auto mapEntsFile = context.OpenAssetFile(mapEntsPath.string());
const auto mapEntsFile = context.OpenAssetFile(std::format("{}.ents", mapEnts->name));
if (!mapEntsFile)
return;