diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-04-19 12:43:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 12:43:52 -0400 |
| commit | 301e17dadb5f6e9212ebcb704eb9cff75883002e (patch) | |
| tree | c1b28712d3e52f0dc5888344c28a6efc0a719a5f /ZAPD/ZResource.cpp | |
| parent | 0d79edb291f7fdeafb2aca8edc81c4f90837977d (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.cpp | 8 |
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) |
