1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-28 18:01:32 +00:00

Remove submodule and use subrepo for ZAPD (#591)

* remove zap

* git subrepo clone https://github.com/zeldaret/ZAPD.git tools/ZAPD

subrepo:
  subdir:   "tools/ZAPD"
  merged:   "cd4a8760b"
upstream:
  origin:   "https://github.com/zeldaret/ZAPD.git"
  branch:   "master"
  commit:   "cd4a8760b"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* remove thanks.md

* zap2 -> zapd and spec changes

* remove submodule init
This commit is contained in:
fig02 2021-01-01 23:24:29 -05:00 committed by GitHub
parent ae5a8f2700
commit ba0c6965ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
220 changed files with 85641 additions and 554 deletions

View file

@ -0,0 +1,110 @@
#include "ZResource.h"
using namespace std;
ZResource::ZResource()
{
parent = nullptr;
name = "";
outName = "";
relativePath = "";
sourceOutput = "";
rawData = vector<uint8_t>();
rawDataIndex = 0;
outputDeclaration = true;
arrayCnt = -1;
}
void ZResource::ParseXML(tinyxml2::XMLElement* reader)
{
name = reader->Attribute("Name");
if (reader->Attribute("OutName") != nullptr)
outName = reader->Attribute("OutName");
else
outName = name;
}
void ZResource::Save(string outFolder)
{
}
void ZResource::PreGenSourceFiles()
{
}
string ZResource::GetName()
{
return name;
}
std::string ZResource::GetOutName()
{
return outName;
}
void ZResource::SetName(string nName)
{
name = nName;
}
bool ZResource::IsExternalResource()
{
return false;
}
std::string ZResource::GetExternalExtension()
{
return "";
}
string ZResource::GetRelativePath()
{
return relativePath;
}
vector<uint8_t> ZResource::GetRawData()
{
return rawData;
}
int ZResource::GetRawDataIndex()
{
return rawDataIndex;
}
int ZResource::GetRawDataSize()
{
return rawData.size();
}
void ZResource::SetRawDataIndex(int value)
{
rawDataIndex = value;
}
string ZResource::GetSourceOutputCode(std::string prefix)
{
return "";
}
string ZResource::GetSourceOutputHeader(std::string prefix)
{
return "";
}
void ZResource::GenerateHLIntermediette(HLFileIntermediette& hlFile)
{
}
ZResourceType ZResource::GetResourceType()
{
return ZResourceType::Error;
}
void ZResource::CalcHash()
{
hash = 0;
}