Skip to content

Commit

Permalink
add xml definitions for all textures (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez committed Sep 10, 2023
1 parent 145758a commit e6b0764
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ZAPD/ZTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e6b0764

Please sign in to comment.