summaryrefslogtreecommitdiff
path: root/ZAPD/ZResource.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-04-19 12:43:52 -0400
committerGitHub <noreply@github.com>2021-04-19 12:43:52 -0400
commit301e17dadb5f6e9212ebcb704eb9cff75883002e (patch)
treec1b28712d3e52f0dc5888344c28a6efc0a719a5f /ZAPD/ZResource.cpp
parent0d79edb291f7fdeafb2aca8edc81c4f90837977d (diff)
Deprecate Hint system (#116)
* remove unnecessary param * Fix Cutscene tag * Fix a missing declaration * Add Path as a node * run format
Diffstat (limited to 'ZAPD/ZResource.cpp')
-rw-r--r--ZAPD/ZResource.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ZAPD/ZResource.cpp b/ZAPD/ZResource.cpp
index f96361e..9ffcc74 100644
--- a/ZAPD/ZResource.cpp
+++ b/ZAPD/ZResource.cpp
@@ -27,8 +27,14 @@ void ZResource::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<u
ParseRawData();
}
-void ZResource::ExtractFromFile()
+void ZResource::ExtractFromFile(const std::vector<uint8_t>& nRawData, int nRawDataIndex,
+ const std::string& nRelPath)
{
+ rawData = nRawData;
+ rawDataIndex = nRawDataIndex;
+ relativePath = nRelPath;
+
+ ParseRawData();
}
void ZResource::ParseXML(tinyxml2::XMLElement* reader)