From 9ada4df15113fb5ebfa3dd2afa1c852b4b626105 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Wed, 10 Nov 2021 09:17:27 +0100 Subject: [PATCH] SoE: include base_checksum in apbp --- worlds/soe/Patch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worlds/soe/Patch.py b/worlds/soe/Patch.py index a9c1bade..0812c3f1 100644 --- a/worlds/soe/Patch.py +++ b/worlds/soe/Patch.py @@ -4,6 +4,10 @@ from typing import Optional import Utils +USHASH = '6e9c94511d04fac6e0a1e582c170be3a' +current_patch_version = 2 + + def read_rom(stream, strip_header=True) -> bytes: """Reads rom into bytearray and optionally strips off any smc header""" data = stream.read() @@ -18,7 +22,8 @@ def generate_yaml(patch: bytes, metadata: Optional[dict] = None) -> bytes: "game": "Secret of Evermore", # minimum version of patch system expected for patching to be successful "compatible_version": 1, - "version": 1}) + "version": current_patch_version, + "base_checksum": USHASH}) return patch.encode(encoding="utf-8-sig")