WebHost: handle SM and SoE

This commit is contained in:
Fabian Dill
2021-11-13 20:52:30 +01:00
parent c178006acc
commit fc3b8c40be
6 changed files with 44 additions and 56 deletions

View File

@@ -204,7 +204,12 @@ class SoEWorld(World):
flags, money, exp)):
raise RuntimeError()
with lzma.LZMAFile(patch_file, 'wb') as f:
f.write(generate_patch(rom_file, out_file))
f.write(generate_patch(rom_file, out_file,
{
# used by WebHost
"player_name": self.world.player_name[self.player],
"player_id": self.player
}))
except:
raise
finally: