summaryrefslogtreecommitdiff
path: root/ZAPD/ZVtx.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-05-26 20:04:02 -0400
committerGitHub <noreply@github.com>2021-05-26 20:04:02 -0400
commit4410b554e835ab7844c8eb78fd54fa3842d50f16 (patch)
tree065b8f53d6e1052c9f7ad1917c1b3b66d5eef645 /ZAPD/ZVtx.cpp
parent769f5702a422d14bfb0a60a39319da4b4bf9ec1f (diff)
Check XML resource attributes (#126)
* register attibutes * fix array problems * cutscene problems * Set inner * fix merge * ups * Run format * small cleaning * A small blob cleanup * Simplify the logic a bit * ups * Fix merge problem * Fix merge issues * Fix merge issues * fix merge-produced type * Fix merge issues * run format and update easteregg * register ZPath attributes * dumb problems * How dumb can I be? * future proof change * empty commit * Check if Width and Height attributes of ZTexture has only decimal digits
Diffstat (limited to 'ZAPD/ZVtx.cpp')
-rw-r--r--ZAPD/ZVtx.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/ZAPD/ZVtx.cpp b/ZAPD/ZVtx.cpp
index 96e6552..d56f4fa 100644
--- a/ZAPD/ZVtx.cpp
+++ b/ZAPD/ZVtx.cpp
@@ -39,11 +39,6 @@ std::string ZVtx::GetBodySourceCode() const
a);
}
-std::string ZVtx::GetSourceTypeName() const
-{
- return "Vtx";
-}
-
std::string ZVtx::GetSourceOutputCode(const std::string& prefix)
{
std::string output = GetBodySourceCode();
@@ -79,13 +74,12 @@ bool ZVtx::IsExternalResource() const
return true;
}
-std::string ZVtx::GetExternalExtension() const
+std::string ZVtx::GetSourceTypeName() const
{
- return "vtx";
+ return "Vtx";
}
-void ZVtx::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData,
- const uint32_t nRawDataIndex)
+std::string ZVtx::GetExternalExtension() const
{
- ZResource::ExtractFromXML(reader, nRawData, nRawDataIndex);
+ return "vtx";
}