mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-14 22:30:12 -05:00
![briaguya](/assets/img/avatar_default.png)
Co-authored-by: kenix3 <kenixwhisperwind@gmail.com> Co-authored-by: David Chavez <david@dcvz.io> Co-authored-by: KiritoDv <kiritodev01@gmail.com> Co-authored-by: Christopher Leggett <chris@leggett.dev>
14 lines
442 B
C++
14 lines
442 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;
|
|
|
|
WriteHeader(bg, outPath, writer, Ship::ResourceType::SOH_Background);
|
|
|
|
writer->Write((uint32_t)bg->GetRawDataSize());
|
|
|
|
auto data = bg->parent->GetRawData();
|
|
writer->Write((char*)data.data() + bg->GetRawDataIndex(), bg->GetRawDataSize());
|
|
} |