SMZ3: 0.4.4 backward compat client fix (#2667)

fixed broken client compatibility with any seed generated before 0.4.4 introduced with the recent change to the message queue.
This commit is contained in:
lordlou
2024-01-07 07:13:52 -05:00
committed by GitHub
parent 70fdd6b90d
commit 89f211f31e
2 changed files with 32 additions and 11 deletions

View File

@@ -616,7 +616,8 @@ class Patch:
"H" if self.myWorld.Config.SMLogic == Config.SMLogic.Hard else \
"X"
self.title = f"ZSM{Patch.Major}{Patch.Minor}{Patch.Patch}{z3Glitch}{smGlitch}{self.myWorld.Id}{self.seed:08x}".ljust(21)[:21]
from Utils import __version__
self.title = f"ZSM{Patch.Major}{Patch.Minor}{Patch.Patch}{__version__.replace('.', '')[0:3]}{z3Glitch}{smGlitch}{self.myWorld.Id}{self.seed:08x}".ljust(21)[:21]
self.patches.append((Snes(0x00FFC0), bytearray(self.title, 'utf8')))
self.patches.append((Snes(0x80FFC0), bytearray(self.title, 'utf8')))