Merge branch 'master' of github.com:xenia-project/xenia

This commit is contained in:
Triang3l 2019-08-10 14:52:54 +03:00
commit db2898e386
1 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,11 @@
#include "xenia/kernel/xboxkrnl/xboxkrnl_private.h" #include "xenia/kernel/xboxkrnl/xboxkrnl_private.h"
#include "xenia/xbox.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 xe {
namespace kernel { namespace kernel {
namespace xboxkrnl { namespace xboxkrnl {
@ -57,7 +62,7 @@ X_STATUS xeExGetXConfigSetting(uint16_t category, uint16_t setting,
break; break;
case 0x0009: // XCONFIG_USER_LANGUAGE case 0x0009: // XCONFIG_USER_LANGUAGE
setting_size = 4; setting_size = 4;
xe::store_and_swap<uint32_t>(value, 0x00000001); // English xe::store_and_swap<uint32_t>(value, cvars::game_language); // English
break; break;
case 0x000A: // XCONFIG_USER_VIDEO_FLAGS case 0x000A: // XCONFIG_USER_VIDEO_FLAGS
setting_size = 4; setting_size = 4;