mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
ZoneLoading: Extract all obj dumping relevant parts to ObjWriting component
This commit is contained in:
13
src/ObjWriting/Game/T6/AssetDumpers/AssetDumperRawFile.cpp
Normal file
13
src/ObjWriting/Game/T6/AssetDumpers/AssetDumperRawFile.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "AssetDumperRawFile.h"
|
||||
|
||||
using namespace T6;
|
||||
|
||||
std::string AssetDumperRawFile::GetFileNameForAsset(Zone* zone, RawFile* asset)
|
||||
{
|
||||
return std::string(asset->name);
|
||||
}
|
||||
|
||||
void AssetDumperRawFile::DumpAsset(Zone* zone, RawFile* asset, FileAPI::File* out)
|
||||
{
|
||||
out->Write(asset->buffer, 1, asset->len);
|
||||
}
|
Reference in New Issue
Block a user