mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Fix compilation for 3DS (#140)
* Changes to enhance support for 3DS * Align helpers to correct type at compile * explicity declare/initialize operational val where used
This commit is contained in:
1 parent
2ea47752c3
commit
82e2514854
4 files changed
+14
-8
No files matched your search
+3
-2
@@ -1,4 +1,5 @@
|
||||
#include "Limelight-internal.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
#define MAX_OPTION_NAME_LEN 128
|
||||
|
||||
@@ -269,7 +270,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
if (IS_SUNSHINE()) {
|
||||
// Send client feature flags to Sunshine hosts
|
||||
uint32_t moonlightFeatureFlags = ML_FF_FEC_STATUS | ML_FF_SESSION_ID_V1;
|
||||
snprintf(payloadStr, sizeof(payloadStr), "%u", moonlightFeatureFlags);
|
||||
snprintf(payloadStr, sizeof(payloadStr), "%" PRIu32, moonlightFeatureFlags);
|
||||
err |= addAttributeString(&optionHead, "x-ml-general.featureFlags", payloadStr);
|
||||
|
||||
// New-style control stream encryption is low overhead, so we enable it any time it is supported
|
||||
@@ -299,7 +300,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
EncryptionFeaturesEnabled |= SS_ENC_AUDIO;
|
||||
}
|
||||
|
||||
snprintf(payloadStr, sizeof(payloadStr), "%u", EncryptionFeaturesEnabled);
|
||||
snprintf(payloadStr, sizeof(payloadStr), "%" PRIu32, EncryptionFeaturesEnabled);
|
||||
err |= addAttributeString(&optionHead, "x-ss-general.encryptionEnabled", payloadStr);
|
||||
|
||||
// Enable YUV444 if requested
|
||||
|
||||
Reference in new issue
Block a user