From 4f2b5eb749ee8ddff8561d3ee912a3a1cc8876b5 Mon Sep 17 00:00:00 2001 From: nmzik Date: Sun, 9 Aug 2026 04:44:43 +0200 Subject: [PATCH] libSystemService fixes --- src/libs/libSystemService.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libs/libSystemService.cpp b/src/libs/libSystemService.cpp index 381814354..cd205f6dc 100644 --- a/src/libs/libSystemService.cpp +++ b/src/libs/libSystemService.cpp @@ -23,6 +23,7 @@ namespace SystemService { [[maybe_unused]] constexpr int PARAM_ID_SUMMERTIME = 5; [[maybe_unused]] constexpr int PARAM_ID_SYSTEM_NAME = 6; [[maybe_unused]] constexpr int PARAM_ID_GAME_PARENTAL_LEVEL = 7; +[[maybe_unused]] constexpr int PARAM_ID_CC_ENABLE = 100; [[maybe_unused]] constexpr int PARAM_ID_SCREEN_READER = 208; [[maybe_unused]] constexpr int PARAM_ID_ENTER_BUTTON_ASSIGN = 1000; @@ -33,6 +34,9 @@ namespace SystemService { [[maybe_unused]] constexpr int PARAM_TIME_FORMAT_12HOUR = 0; [[maybe_unused]] constexpr int PARAM_TIME_FORMAT_24HOUR = 1; +[[maybe_unused]] constexpr int PARAM_CC_DISABLED = 0; +[[maybe_unused]] constexpr int PARAM_CC_ENABLED = 1; + [[maybe_unused]] constexpr int MAX_SYSTEM_NAME_LENGTH = 65; [[maybe_unused]] constexpr int PARAM_GAME_PARENTAL_OFF = 0; @@ -97,9 +101,12 @@ static int KYTY_SYSV_ABI SystemServiceParamGetInt(int param_id, int* value) { case PARAM_ID_TIME_ZONE: v = +180; break; case PARAM_ID_SUMMERTIME: v = 0; break; case PARAM_ID_GAME_PARENTAL_LEVEL: v = PARAM_GAME_PARENTAL_OFF; break; + case PARAM_ID_CC_ENABLE: v = PARAM_CC_DISABLED; break; case PARAM_ID_SCREEN_READER: v = 0; break; case PARAM_ID_ENTER_BUTTON_ASSIGN: v = PARAM_ENTER_BUTTON_ASSIGN_CROSS; break; - default: EXIT("unknown param_id: %d\n", param_id); + default: + LOGF_COLOR(Log::Color::Yellow, " unsupported param_id %d, using 0\n", param_id); + break; } LOGF(" %d = %d\n", param_id, v);