mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-16 06:12:53 +00:00
chore: make map ents dumping add ents extension instead of replacing
This commit is contained in:
parent
b215b22018
commit
0d35696940
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user