2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 08:17:25 +00:00

refactor: move iw3,iw4,iw5,t5 dumpers into seperate folders

This commit is contained in:
Jan Laupetin
2025-07-25 21:23:49 +01:00
parent 64bd89dc46
commit 39fe9965d1
143 changed files with 70 additions and 69 deletions

View File

@@ -0,0 +1,20 @@
#include "AssetDumperSlug.h"
using namespace T6;
bool AssetDumperSlug::ShouldDump(XAssetInfo<Slug>* asset)
{
return true;
}
void AssetDumperSlug::DumpAsset(AssetDumpingContext& context, XAssetInfo<Slug>* asset)
{
const auto* slug = asset->Asset();
const auto assetFile = context.OpenAssetFile(asset->m_name);
if (!assetFile)
return;
auto& stream = *assetFile;
stream.write(slug->buffer, slug->len);
}