mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-02 23:17:26 +00:00
21 lines
430 B
C++
21 lines
430 B
C++
#include "AssetDumperQdb.h"
|
|
|
|
using namespace T6;
|
|
|
|
bool AssetDumperQdb::ShouldDump(XAssetInfo<Qdb>* asset)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void AssetDumperQdb::DumpAsset(AssetDumpingContext& context, 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);
|
|
}
|