mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-26 22:31:50 +00:00
ZoneLoading: Add dumping for Rawfile based assets
This commit is contained in:
13
src/ZoneLoading/Game/T6/AssetDumpers/AssetDumperRawFile.cpp
Normal file
13
src/ZoneLoading/Game/T6/AssetDumpers/AssetDumperRawFile.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "AssetDumperRawFile.h"
|
||||
|
||||
using namespace T6;
|
||||
|
||||
std::string AssetDumperRawFile::GetFileNameForAsset(RawFile* asset)
|
||||
{
|
||||
return std::string(asset->name);
|
||||
}
|
||||
|
||||
void AssetDumperRawFile::DumpAsset(RawFile* asset, FileAPI::File* out)
|
||||
{
|
||||
out->Write(asset->buffer, 1, asset->len);
|
||||
}
|
Reference in New Issue
Block a user