Hello,
I try to run the OSFatal function from pygecko.
I tried the following code, without success.
Then I tried to convert the python2.7 string into integer, but unfortunately system crash in a mess of pixels.
Somebody have an example of python code?
I try to run the OSFatal function from pygecko.
I tried the following code, without success.
Code:
tcp = TCPGecko("192.168.1.1")
OSFatal = tcp.get_symbol('coreinit.rpl', 'OSFatal')
print(OSFatal("hello pygecko"))
Traceback (most recent call last):
File ".\hello_world.py", line 42, in <module>
print(OSFatal("hello pygecko"))
File "C:\wiiu\libwiiu\pyGecko\tcpgecko.py", line 353, in __call__
return self.rpc.call(self.address, *args) #Pass in arguments, run address
File " C:\wiiu\libwiiu\pyGecko\tcpgecko.py", line 241, in call
request = struct.pack(">I8I", address, *arguments)
struct.error: cannot convert argument to integer
Then I tried to convert the python2.7 string into integer, but unfortunately system crash in a mess of pixels.
Somebody have an example of python code?