Update moonlight embedded wrapper to 2.2.2
This commit is contained in:
parent
c371ff8652
commit
391de3feb3
3 changed files with 16 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
|||
#script.moonlight
|
||||
Only for Raspberry Pi 2 and Openelec.
|
||||
A moonlight-embedded kodi interface.
|
||||
|
||||
##Installation
|
||||
- Download the latest "script.moonlight.zip" in the releases
|
||||
- Copy the file to the Openelec
|
||||
- Copy the file to your device
|
||||
- Go to Settings > Addons > Install from zip file
|
||||
|
||||
##Features
|
||||
|
@ -16,5 +16,5 @@ Only for Raspberry Pi 2 and Openelec.
|
|||
![Screenshot](http://dead.github.io/images/moonlight-openelec.png "Screenshot")
|
||||
|
||||
##Bugs
|
||||
- Feel free to open a issue.
|
||||
- Please provide the following info: OpenELEC version and logs from `Userdata\addon_data\script.moonlight\service.log`
|
||||
- Feel free to open a issue
|
||||
- Please provide the logs from `Userdata\addon_data\script.moonlight\service.log`
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
v1.1.0
|
||||
Rename github project to script.moonlight and update to work with moonlight-embedded 2.2.2
|
||||
|
||||
v1.0.11
|
||||
Fixed libmoonlight-common.so not being found.
|
||||
Added alternative dualshock3 mapping
|
||||
|
|
|
@ -10,16 +10,20 @@ GS_WRONG_STATE = -4
|
|||
GS_IO_ERROR = -5
|
||||
GS_NOT_SUPPORTED_4K = -6
|
||||
|
||||
class SERVER_INFORMATION(ctypes.Structure):
|
||||
_fields_ = [("address", ctypes.c_char_p),
|
||||
("serverInfoAppVersion", ctypes.c_char_p),
|
||||
("serverInfoGfeVersion", ctypes.c_bool)]
|
||||
|
||||
class SERVER_DATA(ctypes.Structure):
|
||||
_fields_ = [("address", ctypes.c_char_p),
|
||||
("gpuType", ctypes.c_char_p),
|
||||
("gfeVersion", ctypes.c_char_p),
|
||||
("paired", ctypes.c_bool),
|
||||
("supports4K", ctypes.c_bool),
|
||||
("currentGame", ctypes.c_int),
|
||||
("serverMajorVersion", ctypes.c_int)]
|
||||
|
||||
|
||||
("serverMajorVersion", ctypes.c_int),
|
||||
("serverInfo", SERVER_INFORMATION)]
|
||||
|
||||
class APP_LIST(ctypes.Structure):
|
||||
pass
|
||||
|
||||
|
@ -55,7 +59,7 @@ class LibGameStream:
|
|||
key_dir = os.path.join(os.environ["HOME"], ".cache", "moonlight")
|
||||
|
||||
self.key_dir = key_dir
|
||||
ret = self.gslib.gs_init(self.server, ctypes.c_char_p(key_dir))
|
||||
ret = self.gslib.gs_init(self.server, ctypes.c_char_p(address), ctypes.c_char_p(key_dir))
|
||||
if ret == GS_OK:
|
||||
self.connected = True
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue