Added config option to not leak OS information over discord RPC and temporarially fixed macOS builds

This commit is contained in:
2025-10-11 22:45:20 +10:00
parent 7b53e51e7e
commit 1808c80479
5 changed files with 24 additions and 22 deletions

View File

@@ -39,6 +39,7 @@ int configHandler_Read(configHandler_config_t** configObj) {
(*configObj)->lastfm_api_session_key = NULL;
(*configObj)->discordrpc_enable = false;
(*configObj)->discordrpc_method = 0;
(*configObj)->discordrpc_showSysDetails = false;
(*configObj)->audio_equalizer_enable = false;
(*configObj)->audio_equalizer_followPitch = false;
(*configObj)->audio_equalizer_graphCount = 0;
@@ -234,6 +235,13 @@ int configHandler_Read(configHandler_config_t** configObj) {
(*configObj)->discordrpc_method = discordrpc_method->valueint;
}
cJSON* discordrpc_showSysDetails = cJSON_GetObjectItemCaseSensitive(discordrpc_root, "showSystemDetails");
if (cJSON_IsBool(discordrpc_showSysDetails)) {
if (cJSON_IsTrue(discordrpc_showSysDetails)) {
(*configObj)->discordrpc_showSysDetails = true;
}
}
// Make an object from audio
cJSON* audio_root = cJSON_GetObjectItemCaseSensitive(root, "audio");
if (audio_root == NULL) {