|
|
|
@ -172,6 +172,13 @@ class VaslMod: |
|
|
|
|
if self.vasl_version not in SUPPORTED_VASL_MOD_VERSIONS: |
|
|
|
|
_logger.warning( "Unsupported VASL version: %s", self.vasl_version ) |
|
|
|
|
|
|
|
|
|
def __del__( self ): |
|
|
|
|
# clean up |
|
|
|
|
# NOTE: We keep our module and extension ZIP files open for the duration (so we can |
|
|
|
|
# read images out of them on demand), so we need to make sure we close them here. |
|
|
|
|
for f in self._files: |
|
|
|
|
f[0].close() |
|
|
|
|
|
|
|
|
|
def get_piece_image( self, gpid, side, index ): |
|
|
|
|
"""Get the image for the specified piece.""" |
|
|
|
|
|
|
|
|
|