LttP: add manifest (#6005)

This commit is contained in:
Fabian Dill
2026-03-10 20:04:27 +01:00
committed by GitHub
parent 3235863f2e
commit 47e581bc30
3 changed files with 8 additions and 3 deletions

View File

@@ -363,7 +363,7 @@ class World(metaclass=AutoWorldRegister):
def __getattr__(self, item: str) -> Any:
if item == "settings":
return self.__class__.settings
return getattr(self.__class__, item)
raise AttributeError
# overridable methods that get called by Main.py, sorted by execution order

View File

@@ -1699,8 +1699,7 @@ def patch_rom(multiworld: MultiWorld, rom: LocalRom, player: int, enemized: bool
# set rom name
# 21 bytes
from Utils import __version__
rom.name = bytearray(f'AP{__version__.replace(".", "")[0:3]}_{player}_{multiworld.seed:11}\0', 'utf8')[:21]
rom.name = bytearray(f'AP{local_world.world_version.as_simple_string().replace(".", "")[0:3]}_{player}_{multiworld.seed:11}\0', 'utf8')[:21]
rom.name.extend([0] * (21 - len(rom.name)))
rom.write_bytes(0x7FC0, rom.name)

View File

@@ -0,0 +1,6 @@
{
"game": "A Link to the Past",
"minimum_ap_version": "0.6.6",
"world_version": "5.1.0",
"authors": ["Berserker"]
}