mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-24 17:18:50 -05:00
442a88f03b
subrepo: subdir: "OTRExporter" merged: "1503d3eef" upstream: origin: "https://github.com/HarbourMasters/OTRExporter.git" branch: "master" commit: "1503d3eef" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
10 lines
321 B
C++
10 lines
321 B
C++
#include "BackgroundExporter.h"
|
|
#include "../ZAPD/ZFile.h"
|
|
|
|
void OTRExporter_Background::Save(ZResource* res, const fs::path& outPath, BinaryWriter* writer)
|
|
{
|
|
ZBackground* bg = (ZBackground*)res;
|
|
|
|
auto data = bg->parent->GetRawData();
|
|
writer->Write((char*)data.data() + bg->GetRawDataIndex(), bg->GetRawDataSize());
|
|
} |