diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-05-06 18:20:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 18:20:07 -0400 |
| commit | 5a721d58d4b28f4797d6fdf29d9926e5e968a939 (patch) | |
| tree | cb01d50cec516391b25ec8c0e34bb1699a151719 /ZAPD/ZTexture.cpp | |
| parent | bd4735480a2e6b53585a4f764ae13804e0737a21 (diff) | |
Refactor: Removed `relPath` since it is no longer used. (#136)
* Refactor: Removed relPath since it is no longer used.
* Removed remaining references
Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com>
Diffstat (limited to 'ZAPD/ZTexture.cpp')
| -rw-r--r-- | ZAPD/ZTexture.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ZAPD/ZTexture.cpp b/ZAPD/ZTexture.cpp index 3bdf270..ebd7c55 100644 --- a/ZAPD/ZTexture.cpp +++ b/ZAPD/ZTexture.cpp @@ -49,15 +49,13 @@ ZTexture::~ZTexture() } void ZTexture::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, - const uint32_t nRawDataIndex, const std::string& nRelPath) + const uint32_t nRawDataIndex) { ParseXML(reader); rawDataIndex = nRawDataIndex; rawData = vector<uint8_t>(nRawData.data() + rawDataIndex, nRawData.data() + rawDataIndex + GetRawDataSize()); - relativePath = nRelPath; - FixRawData(); PrepareBitmap(); } @@ -840,8 +838,7 @@ void ZTexture::Save(const std::string& outFolder) string ZTexture::GetSourceOutputCode(const std::string& prefix) { sourceOutput = ""; - - relativePath = "build/assets/" + relativePath; + FixRawData(); uint8_t* rawDataArr = rawData.data(); |
