mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Adventure: Update AdventureDeltaPatch.read_contents to return the manifest as required by #4331 (#5016)
This commit is contained in:
@@ -182,10 +182,11 @@ class AdventureDeltaPatch(APPatch, metaclass=AutoPatchRegister):
|
|||||||
json.dumps(self.rom_deltas),
|
json.dumps(self.rom_deltas),
|
||||||
compress_type=zipfile.ZIP_LZMA)
|
compress_type=zipfile.ZIP_LZMA)
|
||||||
|
|
||||||
def read_contents(self, opened_zipfile: zipfile.ZipFile):
|
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> dict[str, Any]:
|
||||||
super(AdventureDeltaPatch, self).read_contents(opened_zipfile)
|
manifest = super(AdventureDeltaPatch, self).read_contents(opened_zipfile)
|
||||||
self.foreign_items = AdventureDeltaPatch.read_foreign_items(opened_zipfile)
|
self.foreign_items = AdventureDeltaPatch.read_foreign_items(opened_zipfile)
|
||||||
self.autocollect_items = AdventureDeltaPatch.read_autocollect_items(opened_zipfile)
|
self.autocollect_items = AdventureDeltaPatch.read_autocollect_items(opened_zipfile)
|
||||||
|
return manifest
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_source_data(cls) -> bytes:
|
def get_source_data(cls) -> bytes:
|
||||||
|
Reference in New Issue
Block a user