From 415af7b8b82c9ccdfcac5bd1cbc985075903e675 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:04:59 -0400 Subject: [PATCH] Write the footer at the bottom when dumping --- pyproject.toml | 2 +- src/libWiiPy/title/wad.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 27b6772..9f58671 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "libWiiPy" -version = "0.4.2" +version = "0.5.0" authors = [ { name="NinjaCheetah", email="ninjacheetah@ncxprogramming.com" }, { name="Lillian Skinner", email="lillian@randommeaninglesscharacters.com" } diff --git a/src/libWiiPy/title/wad.py b/src/libWiiPy/title/wad.py index 0853d71..5c2b9ca 100644 --- a/src/libWiiPy/title/wad.py +++ b/src/libWiiPy/title/wad.py @@ -174,12 +174,12 @@ class WAD: # Retrieve the TMD data and write it out. wad_data += self.get_tmd_data() wad_data = _pad_bytes(wad_data) - # Retrieve the meta/footer data and write it out. - wad_data += self.get_meta_data() - wad_data = _pad_bytes(wad_data) # Retrieve the content data and write it out. wad_data += self.get_content_data() wad_data = _pad_bytes(wad_data) + # Retrieve the meta/footer data and write it out. + wad_data += self.get_meta_data() + wad_data = _pad_bytes(wad_data) return wad_data def get_wad_type(self) -> str: