Add LiGetExtraLaunchArgs()

The string returned from this function should be appended to the end of the /resume and /launch query parameters.
This commit is contained in:
Cameron Gutman 2024-01-14 11:48:59 -06:00
parent 723cac034b
commit 15b55a441b
2 changed files with 10 additions and 0 deletions

View File

@ -520,3 +520,7 @@ Cleanup:
} }
return err; return err;
} }
const char* LiGetLaunchUrlQueryParameters() {
return "&corever=0";
}

View File

@ -34,6 +34,12 @@ extern "C" {
#define ENCFLG_AUDIO 0x00000001 #define ENCFLG_AUDIO 0x00000001
#define ENCFLG_ALL 0xFFFFFFFF #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 { typedef struct _STREAM_CONFIGURATION {
// Dimensions in pixels of the desired video stream // Dimensions in pixels of the desired video stream
int width; int width;