mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-17 20:42:23 +00:00
subrepo: subdir: "tools/ZAPD" merged: "2e1174063" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "2e1174063" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
24 lines
876 B
C++
24 lines
876 B
C++
#pragma once
|
|
|
|
#include "ZResource.h"
|
|
#include "tinyxml2.h"
|
|
|
|
class ZBlob : public ZResource
|
|
{
|
|
public:
|
|
ZBlob(const std::vector<uint8_t>& nRawData, int rawDataIndex, int size, std::string nName);
|
|
|
|
static ZBlob* ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, int rawDataIndex, std::string nRelPath);
|
|
static ZBlob* BuildFromXML(tinyxml2::XMLElement* reader, const std::string& inFolder, bool readFile);
|
|
static ZBlob* FromFile(const std::string& filePath);
|
|
std::string GetSourceOutputCode(const std::string& prefix) override;
|
|
std::string GetSourceOutputHeader(const std::string& prefix) override;
|
|
void Save(const std::string& outFolder) override;
|
|
bool IsExternalResource() override;
|
|
std::string GetExternalExtension() override;
|
|
std::string GetSourceTypeName() override;
|
|
ZResourceType GetResourceType() override;
|
|
|
|
private:
|
|
ZBlob();
|
|
};
|