mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-02-14 19:33:02 +00:00
19 lines
418 B
C++
19 lines
418 B
C++
#include "QdbDumperT6.h"
|
|
|
|
using namespace T6;
|
|
|
|
namespace qdb
|
|
{
|
|
void DumperT6::DumpAsset(AssetDumpingContext& context, const XAssetInfo<Qdb>& asset)
|
|
{
|
|
const auto* qdb = asset.Asset();
|
|
const auto assetFile = context.OpenAssetFile(asset.m_name);
|
|
|
|
if (!assetFile)
|
|
return;
|
|
|
|
auto& stream = *assetFile;
|
|
stream.write(qdb->buffer, qdb->len);
|
|
}
|
|
} // namespace qdb
|