[Kernel] Added few elemenmts to xeExGetXConfigSetting

This will allow to go inside "Console Settings" in NXE Dashboard
and fixes stability on older dashboards
This commit is contained in:
Gliniak 2019-12-11 19:54:38 +01:00 committed by illusion
parent f2b16354c1
commit ec6be47228
1 changed files with 28 additions and 0 deletions

View File

@ -85,6 +85,10 @@ X_STATUS xeExGetXConfigSetting(uint16_t category, uint16_t setting,
// TODO(benvanik): get this value. // TODO(benvanik): get this value.
xe::store_and_swap<uint32_t>(value, 0); xe::store_and_swap<uint32_t>(value, 0);
break; break;
case 0x0008: // XCONFIG_DEFAULT_PROFILE
setting_size = 8;
xe::store_and_swap<uint64_t>(value, 0);
break;
case 0x0009: // XCONFIG_USER_LANGUAGE case 0x0009: // XCONFIG_USER_LANGUAGE
setting_size = 4; setting_size = 4;
xe::store_and_swap<uint32_t>(value, cvars::user_language); xe::store_and_swap<uint32_t>(value, cvars::user_language);
@ -119,6 +123,30 @@ X_STATUS xeExGetXConfigSetting(uint16_t category, uint16_t setting,
return X_STATUS_INVALID_PARAMETER_2; return X_STATUS_INVALID_PARAMETER_2;
} }
break; break;
case 0x0007:
// XCONFIG_CONSOLE_SETTINGS
switch (setting) {
case 0x0001: // XCONFIG_SCREENSAVER
setting_size = 2;
xe::store_and_swap<uint16_t>(value, 0);
break;
case 0x0002: // XCONFIG_AUTO_SHUTDOWN
setting_size = 2;
xe::store_and_swap<uint16_t>(value, 0);
break;
case 0x0004: // XCONFIG_CAMERA_SETTINGS
setting_size = 4;
xe::store_and_swap<uint32_t>(value, 0);
break;
case 0x000B:
setting_size = 4;
xe::store_and_swap<uint32_t>(value, 0);
break;
default:
assert_unhandled_case(setting);
return X_STATUS_INVALID_PARAMETER_2;
}
break;
default: default:
assert_unhandled_case(category); assert_unhandled_case(category);
return X_STATUS_INVALID_PARAMETER_1; return X_STATUS_INVALID_PARAMETER_1;