diff --git a/script.moonlight/addon.xml b/script.moonlight/addon.xml index 9d53246..d18a813 100644 --- a/script.moonlight/addon.xml +++ b/script.moonlight/addon.xml @@ -1,5 +1,5 @@  - + @@ -16,4 +16,4 @@ gustavobenn@hotmail.com - \ No newline at end of file + diff --git a/script.moonlight/changelog.txt b/script.moonlight/changelog.txt index 22e4bf7..c910521 100644 --- a/script.moonlight/changelog.txt +++ b/script.moonlight/changelog.txt @@ -1,3 +1,6 @@ +v1.1.1 +update to work with moonlight-embedded 2.4.3 + v1.1.0 Rename github project to script.moonlight and update to work with moonlight-embedded 2.2.2 @@ -35,4 +38,4 @@ v1.0.1 Add Pair and List Options v1.0.0 -Initial Release \ No newline at end of file +Initial Release diff --git a/script.moonlight/lib/moonlight.py b/script.moonlight/lib/moonlight.py index 7edae39..87065fc 100644 --- a/script.moonlight/lib/moonlight.py +++ b/script.moonlight/lib/moonlight.py @@ -10,6 +10,14 @@ GS_WRONG_STATE = -4 GS_IO_ERROR = -5 GS_NOT_SUPPORTED_4K = -6 +class DISPLAY_MODE(ctypes.Structure): + pass + +DISPLAY_MODE._fields_ = [("height", ctypes.c_int), + ("width", ctypes.c_int), + ("refresh", ctypes.c_int), + ("next", ctypes.POINTER(DISPLAY_MODE))] + class SERVER_INFORMATION(ctypes.Structure): _fields_ = [("address", ctypes.c_char_p), ("serverInfoAppVersion", ctypes.c_char_p), @@ -20,8 +28,11 @@ class SERVER_DATA(ctypes.Structure): ("gpuType", ctypes.c_char_p), ("paired", ctypes.c_bool), ("supports4K", ctypes.c_bool), + ("unsupported", ctypes.c_bool), ("currentGame", ctypes.c_int), ("serverMajorVersion", ctypes.c_int), + ("gsVersion", ctypes.c_char_p), + ("modes", DISPLAY_MODE), ("serverInfo", SERVER_INFORMATION)] class APP_LIST(ctypes.Structure): @@ -37,8 +48,8 @@ class _HTTP_DATA(ctypes.Structure): class LibGameStream: def __init__(self, libpath = ""): - self.commonlib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libmoonlight-common.so.0")) - self.gslib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libgamestream.so.0")) + self.commonlib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libmoonlight-common.so.2")) + self.gslib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libgamestream.so.2")) self.connected = False self.address = "" self.key_dir = ""