mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Zillion: fix read_contents
to be compatible with base class (#5015)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
from typing import BinaryIO
|
from typing import Any, BinaryIO
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
from typing_extensions import override
|
from typing_extensions import override
|
||||||
@@ -46,9 +46,10 @@ class ZillionPatch(APAutoPatchInterface):
|
|||||||
compress_type=zipfile.ZIP_DEFLATED)
|
compress_type=zipfile.ZIP_DEFLATED)
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> None:
|
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> dict[str, Any]:
|
||||||
super().read_contents(opened_zipfile)
|
manifest = super().read_contents(opened_zipfile)
|
||||||
self.gen_data_str = opened_zipfile.read("gen_data.json").decode()
|
self.gen_data_str = opened_zipfile.read("gen_data.json").decode()
|
||||||
|
return manifest
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def patch(self, target: str) -> None:
|
def patch(self, target: str) -> None:
|
||||||
|
Reference in New Issue
Block a user