File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
2728all_tasks = set ()
Original file line number Diff line number Diff 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."""
You can’t perform that action at this time.
0 commit comments