Skip to content

Commit 5a55aa2

Browse files
committedSep 21, 2024
Log asset types when we read an asset.
1 parent adce5ad commit 5a55aa2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/MediaStation/Assets/Asset.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from asset_extraction_framework.Asserts import assert_equal
77
from asset_extraction_framework.Exceptions import BinaryParsingError
88

9+
from .. import global_variables
910
from ..Primitives.Datum import Datum
1011
from ..Primitives.Polygon import Polygon
1112
from .BitmapSet import BitmapSet, BitmapSetBitmapDeclaration
@@ -122,6 +123,7 @@ def __init__(self, chunk):
122123
self.type = Asset.AssetType(Datum(chunk).d)
123124
# The ID of this asset. Unique within each game.
124125
self.id: int = Datum(chunk).d
126+
global_variables.application.logger.debug(f'*** ASSET {self.id} ({self.type.name}) ***')
125127
# The asset ID of the stage on which this asset is shown.
126128
# None if the asset does not belong to a stage.
127129
self.stage_id = None
@@ -408,7 +410,7 @@ def _read_section(self, section_type, chunk):
408410
self.viewport_origin = Datum(chunk).d
409411

410412
elif section_type == 0x0770: # CAM
411-
self.lens_open = bool(Datum(chunk.d))
413+
self.lens_open = bool(Datum(chunk).d)
412414

413415
elif section_type == 0x0771: # STG
414416
self.unks.append({hex(section_type): Datum(chunk).d})

0 commit comments

Comments
 (0)