Skip to content

Commit

Permalink
SNIClient: restore old operands header (ArchipelagoMW#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored May 3, 2024
1 parent 298c9fc commit f27d1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SNIClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ async def snes_write(ctx: SNIContext, write_list: typing.List[typing.Tuple[int,
PutAddress_Request: SNESRequest = {"Opcode": "PutAddress", "Operands": [], 'Space': 'SNES'}
try:
for address, data in write_list:
PutAddress_Request['Operands'] = [hex(address)[2:], hex(min(len(data), 256))[2:]]
PutAddress_Request['Operands'] = [hex(address)[2:], hex(len(data))[2:]]
if ctx.snes_socket is not None:
await ctx.snes_socket.send(dumps(PutAddress_Request))
await ctx.snes_socket.send(data)
Expand Down

0 comments on commit f27d1d6

Please sign in to comment.