diff --git a/README.md b/README.md index ba5e3bb..259e964 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/script.moonlight/changelog.txt b/script.moonlight/changelog.txt index ed6fc22..22e4bf7 100644 --- a/script.moonlight/changelog.txt +++ b/script.moonlight/changelog.txt @@ -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 diff --git a/script.moonlight/lib/moonlight.py b/script.moonlight/lib/moonlight.py index 5fde41c..7edae39 100644 --- a/script.moonlight/lib/moonlight.py +++ b/script.moonlight/lib/moonlight.py @@ -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