Skip to content

Commit

Permalink
Merge pull request #21 from JayFoxRox/nxdk-rdt-update
Browse files Browse the repository at this point in the history
Update nxdk-rdt protocol
  • Loading branch information
JayFoxRox authored Jul 27, 2018
2 parents 4172398 + 2fad15f commit 22c887f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
24 changes: 12 additions & 12 deletions xboxpy/interface/dbg_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions xboxpy/interface/if_nxdk_rdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from . import get_xbox_address
import socket
from .dbg_pb2 import *
import struct

(HOST, PORT) = get_xbox_address(9269)

Expand Down Expand Up @@ -47,15 +48,15 @@ def write(address, data, physical):
req.address = address
res = _send_simple_request(req)

def call(address, stack, registers=None):
def call(address, stack=None):
req = Request()
req.type = Request.CALL
req.address = address
req.data = stack
#FIXME: req.registers = registers
if stack is not None:
req.data = stack
res = _send_simple_request(req)
out_registers = {}
out_registers['eax'] = res.address
out_registers['eax'] = struct.unpack_from("<I", res.data, 7*4)[0]
return out_registers

api.read = read
Expand Down

0 comments on commit 22c887f

Please sign in to comment.