Skip to content

Commit d725fcf

Browse files
committed
Fix bytestrings
1 parent 011fd41 commit d725fcf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

worlds/dk64/client/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class DK64MemoryMap:
2222
NextGamemode = 0x80755318
2323
safety_text_timer = 0x02A
2424
end_credits = 0x1B0
25+
player_name = 0x1FF3000
2526

2627

2728
all_tasks = set()

worlds/dk64/client/pj64.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ def read_dict(self, dict):
188188

189189
def _write_memory(self, command, address, data):
190190
"""Writes data to memory and returns the emulator response."""
191-
return self._send_command(f"{command} {hex(address)} [{data}]")
191+
return self._send_command(f"{command} {hex(address)} {data}")
192192

193193
def write_u8(self, address, data):
194194
"""Writes an 8-bit unsigned integer to memory."""
195-
return self._write_memory("write u8", address, data)
195+
return self._write_memory("write u8", address, [data])
196196

197197
def write_u32(self, address, data):
198198
"""Writes a 32-bit unsigned integer to memory."""
199-
return self._write_memory("write u32", address, data)
199+
return self._write_memory("write u32", address, [data])
200200

201201
def write_bytestring(self, address, data):
202202
"""Writes a bytestring to memory."""

0 commit comments

Comments
 (0)