diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-06-04 12:52:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-04 12:52:38 -0400 |
| commit | 726ff528a3ab66afde92b5b6e70a96f168fee041 (patch) | |
| tree | ba3ff371bc2fd89a448ea6914b45dea10c8ca20c /ZAPD/ZTexture.h | |
| parent | ca229f19b991c613c29afade3d70b100522cece1 (diff) | |
Optimize RAM usage and performance by removing redundant `rawData` (#148)
* Remove rawData from ZResource
* Remove dlistRawData and some leftovers extra params
* Run format
* Unused variable warning
Diffstat (limited to 'ZAPD/ZTexture.h')
| -rw-r--r-- | ZAPD/ZTexture.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ZAPD/ZTexture.h b/ZAPD/ZTexture.h index c17ed0b..807468a 100644 --- a/ZAPD/ZTexture.h +++ b/ZAPD/ZTexture.h @@ -58,10 +58,9 @@ public: bool isPalette = false; - void ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, - uint32_t nRawDataIndex) override; - void FromBinary(const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex, int32_t nWidth, - int32_t nHeight, TextureType nType, bool nIsPalette); + void ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex) override; + void FromBinary(uint32_t nRawDataIndex, int32_t nWidth, int32_t nHeight, TextureType nType, + bool nIsPalette); void FromPNG(const fs::path& pngFilePath, TextureType texType); void FromHLTexture(HLTexture* hlTex); |
