summaryrefslogtreecommitdiff
path: root/ZAPD/ZArray.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-04-22 14:54:23 -0400
committerGitHub <noreply@github.com>2021-04-22 14:54:23 -0400
commitb0d98ff1bbda9fa25515a28bcf0c36314156c66c (patch)
treefb72d1baab60c2e16dae5399be023debeba4a3a4 /ZAPD/ZArray.cpp
parente06757c87e317e6bb102bd39fbe4cdcfed277fa9 (diff)
Add a few errors checks (#119)
* Check for repeated names, outnames and offsets Signed-off-by: angie <angheloalf95@gmail.com> * Check for File inside File Signed-off-by: angie <angheloalf95@gmail.com> * Error if a ZResource node has a child Signed-off-by: angie <angheloalf95@gmail.com> * Error if an invalid ZResource name is included in the XML Signed-off-by: angie <angheloalf95@gmail.com> * error when a ZResource is not in a ZFile Signed-off-by: angie <angheloalf95@gmail.com> * ups Signed-off-by: angie <angheloalf95@gmail.com> * Add error if unknown element is found and other fixes * Run format
Diffstat (limited to 'ZAPD/ZArray.cpp')
-rw-r--r--ZAPD/ZArray.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp
index f00d85d..dabe526 100644
--- a/ZAPD/ZArray.cpp
+++ b/ZAPD/ZArray.cpp
@@ -7,6 +7,7 @@ REGISTER_ZFILENODE(Array, ZArray);
ZArray::ZArray(ZFile* nParent) : ZResource(nParent)
{
+ canHaveInner = true;
}
void ZArray::ParseXML(tinyxml2::XMLElement* reader)