From e6b0764799309b96c46f4c77e3ea2aa670f15e89 Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Sun, 10 Sep 2023 19:22:24 +0200 Subject: add xml definitions for all textures (#3161) --- ZAPD/ZTexture.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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, -- cgit v1.2.3