From 7cdb5f31238564454b03167fae5aedfabf51898d Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 7 Mar 2017 15:18:45 +0000 Subject: [PATCH] Add missing system languages Adds Portuguese (BR) which was introduced in firmware 4.00 alongside with English (UK) Adds Turkish which was introduced in firmware 4.30 --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 1 + rpcs3/Emu/Cell/Modules/cellGame.h | 5 +++-- rpcs3/Emu/Cell/Modules/cellSysutil.cpp | 2 ++ rpcs3/Emu/Cell/Modules/cellSysutil.h | 5 +++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index e5325335fe7a..50b584a08918 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -601,6 +601,7 @@ static const char* get_param_string_key(s32 id) case CELL_GAME_PARAMID_TITLE_POLISH: return "TITLE_16"; case CELL_GAME_PARAMID_TITLE_PORTUGUESE_BRAZIL: return "TITLE_17"; case CELL_GAME_PARAMID_TITLE_ENGLISH_UK: return "TITLE_18"; + case CELL_GAME_PARAMID_TITLE_TURKISH: return "TITLE_19"; case CELL_GAME_PARAMID_TITLE_ID: return "TITLE_ID"; case CELL_GAME_PARAMID_VERSION: return "VERSION"; diff --git a/rpcs3/Emu/Cell/Modules/cellGame.h b/rpcs3/Emu/Cell/Modules/cellGame.h index fd689535dcb5..47a8a651e2ff 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.h +++ b/rpcs3/Emu/Cell/Modules/cellGame.h @@ -104,8 +104,9 @@ enum CELL_GAME_PARAMID_TITLE_DANISH = 16, CELL_GAME_PARAMID_TITLE_NORWEGIAN = 17, CELL_GAME_PARAMID_TITLE_POLISH = 18, - CELL_GAME_PARAMID_TITLE_PORTUGUESE_BRAZIL = 19, - CELL_GAME_PARAMID_TITLE_ENGLISH_UK = 20, + CELL_GAME_PARAMID_TITLE_PORTUGUESE_BRAZIL = 19, // FW 4.00 + CELL_GAME_PARAMID_TITLE_ENGLISH_UK = 20, // FW 4.00 + CELL_GAME_PARAMID_TITLE_TURKISH = 21, // FW 4.30 CELL_GAME_PARAMID_TITLE_ID = 100, CELL_GAME_PARAMID_VERSION = 101, CELL_GAME_PARAMID_PS3_SYSTEM_VER = 105, diff --git a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp index 6a64226d64c3..2f528474a277 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp @@ -88,6 +88,8 @@ cfg::map_entry g_cfg_sys_language(cfg::root.sys, "Language", { "Norwegian", CELL_SYSUTIL_LANG_NORWEGIAN }, { "Polish", CELL_SYSUTIL_LANG_POLISH }, { "English (UK)", CELL_SYSUTIL_LANG_ENGLISH_GB }, + { "Portuguese (BR)", CELL_SYSUTIL_LANG_PORTUGUESE_BR }, + { "Turkish", CELL_SYSUTIL_LANG_TURKISH }, }); // For test diff --git a/rpcs3/Emu/Cell/Modules/cellSysutil.h b/rpcs3/Emu/Cell/Modules/cellSysutil.h index 6257ddae46d1..cf185e0e540c 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutil.h +++ b/rpcs3/Emu/Cell/Modules/cellSysutil.h @@ -57,8 +57,9 @@ enum CELL_SYSUTIL_LANG_DANISH = 14, CELL_SYSUTIL_LANG_NORWEGIAN = 15, CELL_SYSUTIL_LANG_POLISH = 16, - CELL_SYSUTIL_LANG_PORTUGUESE_BR = 17, - CELL_SYSUTIL_LANG_ENGLISH_GB = 18, + CELL_SYSUTIL_LANG_PORTUGUESE_BR = 17, // FW 4.00 + CELL_SYSUTIL_LANG_ENGLISH_GB = 18, // FW 4.00 + CELL_SYSUTIL_LANG_TURKISH = 19, // FW 4.30 }; enum