From 15b55a441bf817a70ec86086d5bbba7b71a3344c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 14 Jan 2024 11:48:59 -0600 Subject: [PATCH] Add LiGetExtraLaunchArgs() The string returned from this function should be appended to the end of the /resume and /launch query parameters. --- src/Connection.c | 4 ++++ src/Limelight.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/Connection.c b/src/Connection.c index 3cfb352..2b4d70e 100644 --- a/src/Connection.c +++ b/src/Connection.c @@ -520,3 +520,7 @@ Cleanup: } return err; } + +const char* LiGetLaunchUrlQueryParameters() { + return "&corever=0"; +} diff --git a/src/Limelight.h b/src/Limelight.h index af50dd8..3f3c277 100644 --- a/src/Limelight.h +++ b/src/Limelight.h @@ -34,6 +34,12 @@ extern "C" { #define ENCFLG_AUDIO 0x00000001 #define ENCFLG_ALL 0xFFFFFFFF +// This function returns a string that you SHOULD append to the /launch and /resume +// query parameter string. This is used to enable certain extended functionality +// with Sunshine hosts. The returned string is owned by moonlight-common-c and +// should not be freed by the caller. +const char* LiGetLaunchUrlQueryParameters(void); + typedef struct _STREAM_CONFIGURATION { // Dimensions in pixels of the desired video stream int width;