From c621e01dd2c8ad45b1e3490cceda28a44c15da23 Mon Sep 17 00:00:00 2001 From: Jonathan Goyvaerts Date: Sat, 10 Aug 2019 13:25:04 +0200 Subject: [PATCH] Add game_language as a config variable --- src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc index 62aeba094..c1597fd4a 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc @@ -15,6 +15,11 @@ #include "xenia/kernel/xboxkrnl/xboxkrnl_private.h" #include "xenia/xbox.h" +DEFINE_int32(game_language, 1, + "The language for the game to run in. 1=EN / 2=JP / 3=DE / 4=FR / " + "5=ES / 6=IT / 7=KR / 8=CN", + "General"); + namespace xe { namespace kernel { namespace xboxkrnl { @@ -57,7 +62,7 @@ X_STATUS xeExGetXConfigSetting(uint16_t category, uint16_t setting, break; case 0x0009: // XCONFIG_USER_LANGUAGE setting_size = 4; - xe::store_and_swap(value, 0x00000001); // English + xe::store_and_swap(value, cvars::game_language); // English break; case 0x000A: // XCONFIG_USER_VIDEO_FLAGS setting_size = 4;