diff options
| author | Adam Bird <Archez@users.noreply.github.com> | 2023-09-10 19:22:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-10 12:22:24 -0500 |
| commit | e6b0764799309b96c46f4c77e3ea2aa670f15e89 (patch) | |
| tree | 114c3d432697e04831741e623ae2340f6239bbe9 | |
| parent | 145758a1ee927ea6467e321ecaac48ead838bacc (diff) | |
add xml definitions for all textures (#3161)
| -rw-r--r-- | ZAPD/ZTexture.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ZAPD/ZTexture.cpp b/ZAPD/ZTexture.cpp index e0a91f0..5184b83 100644 --- a/ZAPD/ZTexture.cpp +++ b/ZAPD/ZTexture.cpp @@ -27,6 +27,13 @@ ZTexture::ZTexture(ZFile* nParent) : ZResource(nParent) RegisterOptionalAttribute("ExternalTlut"); RegisterOptionalAttribute("ExternalTlutOffset"); RegisterOptionalAttribute("SplitTlut"); + + // Dummy property added by https://github.com/HarbourMasters/Shipwright/pull/3161 + // Used to indicate if a resource definition was added through a script + // and to enable easy removal/re-add of the definitions when introducing new rom support + // Can be removed once we feel it is no longer useful + // This is not used in ZAPD itself, the registration is to prevent missing attribute errors + RegisterOptionalAttribute("AddedByScript"); } void ZTexture::ExtractFromBinary(uint32_t nRawDataIndex, int32_t nWidth, int32_t nHeight, |
