diff --git a/python-scripts/restart-xbe.py b/python-scripts/restart-xbe.py new file mode 100755 index 0000000..a16d918 --- /dev/null +++ b/python-scripts/restart-xbe.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python3 + +# This prints the path of the currently running XBE, and then restarts it + +from xboxpy import * + +import struct + + +def runningXBEPath(): + + # USHORT Length + # USHORT MaximumLength + # CONST char *Buffer + filename = read(ke.XeImageFileName(), 8) + filename_len, filename_maxlen, filename_str_addr = struct.unpack("