mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-13 18:30:35 +00:00
git subrepo pull --force tools/ZAPD (#1049)
subrepo: subdir: "tools/ZAPD" merged: "a3363333d" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "a3363333d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
This commit is contained in:
parent
5e9d24fca4
commit
68899c2e33
72 changed files with 1311 additions and 569 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "ZSymbol.h"
|
||||
|
||||
#include "Utils/StringHelper.h"
|
||||
#include "WarningHandler.h"
|
||||
#include "ZFile.h"
|
||||
|
||||
REGISTER_ZFILENODE(Symbol, ZSymbol);
|
||||
|
@ -20,11 +21,8 @@ void ZSymbol::ParseXML(tinyxml2::XMLElement* reader)
|
|||
|
||||
if (typeXml == "")
|
||||
{
|
||||
fprintf(stderr,
|
||||
"ZSymbol::ParseXML: Warning in '%s'.\n"
|
||||
"\t Missing 'Type' attribute in xml.\n"
|
||||
"\t Defaulting to 'void*'.\n",
|
||||
name.c_str());
|
||||
HANDLE_WARNING_RESOURCE(WarningType::MissingAttribute, parent, this, rawDataIndex,
|
||||
"missing 'Type' attribute in <Symbol>", "Defaulting to 'void*'.");
|
||||
type = "void*";
|
||||
}
|
||||
else
|
||||
|
@ -35,11 +33,8 @@ void ZSymbol::ParseXML(tinyxml2::XMLElement* reader)
|
|||
std::string typeSizeXml = registeredAttributes.at("TypeSize").value;
|
||||
if (typeSizeXml == "")
|
||||
{
|
||||
fprintf(stderr,
|
||||
"ZSymbol::ParseXML: Warning in '%s'.\n"
|
||||
"\t Missing 'TypeSize' attribute in xml.\n"
|
||||
"\t Defaulting to '4'.\n",
|
||||
name.c_str());
|
||||
HANDLE_WARNING_RESOURCE(WarningType::MissingAttribute, parent, this, rawDataIndex,
|
||||
"missing 'TypeSize' attribute in <Symbol>", "Defaulting to '4'.");
|
||||
typeSize = 4; // Size of a word.
|
||||
}
|
||||
else
|
||||
|
@ -58,7 +53,9 @@ void ZSymbol::ParseXML(tinyxml2::XMLElement* reader)
|
|||
|
||||
if (registeredAttributes.at("Static").value == "On")
|
||||
{
|
||||
fprintf(stderr, "A <Symbol> can't be marked as static.\n\t Disabling static\n");
|
||||
HANDLE_WARNING_RESOURCE(WarningType::InvalidAttributeValue, parent, this, rawDataIndex,
|
||||
"a <Symbol> cannot be marked as static",
|
||||
"Disabling static for this resource.");
|
||||
}
|
||||
staticConf = StaticConfig::Off;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue