summaryrefslogtreecommitdiff
path: root/ZAPD/ZLimb.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/ZLimb.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/ZLimb.cpp')
-rw-r--r--ZAPD/ZLimb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZLimb.cpp b/ZAPD/ZLimb.cpp
index ee596e6..49b01fa 100644
--- a/ZAPD/ZLimb.cpp
+++ b/ZAPD/ZLimb.cpp
@@ -6,6 +6,8 @@
using namespace std;
+REGISTER_ZFILENODE(Limb, ZLimb);
+
Struct_800A57C0::Struct_800A57C0(const std::vector<uint8_t>& rawData, uint32_t fileOffset)
{
unk_0 = BitConverter::ToUInt16BE(rawData, fileOffset + 0x00);