Skip to content

Commit

Permalink
fixed delay tag not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
SunakazeKun committed Feb 9, 2023
1 parent f4735a6 commit 3f2d5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions adapter_smg2.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_tag(self, stream: BinaryMemoryIO):
raise LMSException(f"Wait tag length should be 2 (tag at 0x{tag_position})")

wait_time = stream.read_u16()
return f'[wait:{wait_time}]'
return f'[delay:{wait_time}]'
elif tag_id == 1:
if len_data != 0:
raise LMSException(f"Page break tag length should be 0 (tag at 0x{tag_position})")
Expand Down Expand Up @@ -218,7 +218,7 @@ def write_tag(self, stream: BinaryMemoryIO, tag: str):
stream.write_u16(color_id)

# Display
elif tag_name == "wait":
elif tag_name == "delay":
self._verify_tag_attr_size_(tag_name, tag_attrs, 1, tag)
wait_time = self._get_tag_attr_u16_(tag_attrs[0], tag)

Expand Down
2 changes: 1 addition & 1 deletion guihelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__all__ = ["SettingsHolder", "WorkerThread", "resolve_asset", "PROGRAM_VERSION", "PROGRAM_TITLE"]

PROGRAM_VERSION = "v0.1.1"
PROGRAM_VERSION = "v0.1.2"
PROGRAM_TITLE = f"galaxymsbt -- Super Mario Galaxy 2 MSBT Editor -- {PROGRAM_VERSION}"


Expand Down

0 comments on commit 3f2d5b5

Please sign in to comment.