2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-26 22:31:50 +00:00

ZoneLoading: Make AssetDumpers get the zone via their args

This commit is contained in:
Jan
2019-11-19 02:30:04 +01:00
parent 7077ba8ce3
commit 11168c782f
15 changed files with 30 additions and 29 deletions

View File

@ -2,12 +2,12 @@
using namespace T6;
std::string AssetDumperRawFile::GetFileNameForAsset(RawFile* asset)
std::string AssetDumperRawFile::GetFileNameForAsset(Zone* zone, RawFile* asset)
{
return std::string(asset->name);
}
void AssetDumperRawFile::DumpAsset(RawFile* asset, FileAPI::File* out)
void AssetDumperRawFile::DumpAsset(Zone* zone, RawFile* asset, FileAPI::File* out)
{
out->Write(asset->buffer, 1, asset->len);
}