summaryrefslogtreecommitdiff
path: root/ZAPD/ZFile.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2022-12-05 23:19:25 -0500
committerGitHub <noreply@github.com>2022-12-05 23:19:25 -0500
commita80f36ca0f003a3901fc781505f707ca2ef4c63a (patch)
tree2b9cec4c873c194ada5449f276a18bf0090483be /ZAPD/ZFile.cpp
parent645444f209bfeca025b3862548a59d31ef9bca08 (diff)
Read from an external file for entrance lists (#271)
* Read from entrance list file * Remove switch. * Add check for special entrances. * Ignore warning for GCC in specific spot. * u
Diffstat (limited to 'ZAPD/ZFile.cpp')
-rw-r--r--ZAPD/ZFile.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp
index 60382f6..0977650 100644
--- a/ZAPD/ZFile.cpp
+++ b/ZAPD/ZFile.cpp
@@ -216,7 +216,9 @@ void ZFile::ParseXML(tinyxml2::XMLElement* reader, const std::string& filename)
std::string offsetStr = StringHelper::Split(offsetXml, "0x")[1];
if (!StringHelper::HasOnlyHexDigits(offsetStr))
{
- HANDLE_ERROR(WarningType::InvalidXML, StringHelper::Sprintf("Invalid offset %s entered", offsetStr.c_str()), "");
+ HANDLE_ERROR(WarningType::InvalidXML,
+ StringHelper::Sprintf("Invalid offset %s entered", offsetStr.c_str()),
+ "");
}
rawDataIndex = strtol(offsetStr.c_str(), NULL, 16);
@@ -426,7 +428,7 @@ std::vector<ZResource*> ZFile::GetResourcesOfType(ZResourceType resType)
{
std::vector<ZResource*> resList;
resList.reserve(resources.size());
-
+
for (ZResource* res : resources)
{
if (res->GetResourceType() == resType)