mirror of
https://github.com/Goldenkrew3000/OSSP_OpenSource.git
synced 2025-12-20 00:34:44 +10:00
Added config option to not leak OS information over discord RPC and temporarially fixed macOS builds
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user