diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index b88c88a0d7..ccc78d320b 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -248,7 +248,7 @@ void UpdateConfirmCancelKeys() { SetConfirmCancelKeys(confirmKeys, cancelKeys); } -static void SetDefaultKeyMap(int deviceId, const DefMappingStruct *array, int count, bool replace) { +static void SetDefaultKeyMap(int deviceId, const DefMappingStruct *array, size_t count, bool replace) { for (size_t i = 0; i < count; i++) { if (array[i].direction == 0) SetKeyMapping(array[i].pspKey, KeyDef(deviceId, array[i].key), replace); diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index 1fc3c4cd6e..7c8a44ec6c 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -65,6 +65,8 @@ const u32 ATRAC3PLUS_MAX_SAMPLES = 0x800; static const int atracDecodeDelay = 2300; +static const int MAX_CONFIG_VOLUME = 8; + #ifdef USE_FFMPEG // Urgh! Why is this needed? @@ -625,7 +627,6 @@ u32 _AtracDecodeData(int atracID, u8* outbuf, u32 *SamplesNum, u32* finish, int atrac->sampleQueue.push(buf, decodebytes); } } - const int MAX_CONFIG_VOLUME = 8; s16* out = (s16*)outbuf; memset(out, 0, ATRAC3PLUS_MAX_SAMPLES * sizeof(s16) * atrac->atracOutputChannels); int gotsize = atrac->sampleQueue.pop_front(buf, ATRAC3PLUS_MAX_SAMPLES * sizeof(s16) * atrac->atracChannels); @@ -1696,7 +1697,6 @@ int sceAtracLowLevelDecode(int atracID, u32 sourceAddr, u32 sourceBytesConsumedA Atrac3plus_Decoder::Decode(atrac->decoder_context, Memory::GetPointer(sourceAddr), sourcebytes, &decodebytes, buf); atrac->sampleQueue.push(buf, decodebytes); } - const int MAX_CONFIG_VOLUME = 5; s16* out = (s16*)Memory::GetPointer(samplesAddr); memset(out, 0, ATRAC3PLUS_MAX_SAMPLES * sizeof(s16) * atrac->atracOutputChannels); int gotsize = atrac->sampleQueue.pop_front(buf, ATRAC3PLUS_MAX_SAMPLES * sizeof(s16) * atrac->atracChannels); diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp index a1d86f4a88..6c4605a729 100644 --- a/UI/MiscScreens.cpp +++ b/UI/MiscScreens.cpp @@ -99,13 +99,13 @@ std::map> GetLangValuesMapping() { langValuesMapping["ja_JP"] = std::make_pair("日本語", PSP_SYSTEMPARAM_LANGUAGE_JAPANESE); langValuesMapping["en_US"] = std::make_pair("English",PSP_SYSTEMPARAM_LANGUAGE_ENGLISH); langValuesMapping["fr_FR"] = std::make_pair("Français", PSP_SYSTEMPARAM_LANGUAGE_FRENCH); - langValuesMapping["es_ES"] = std::make_pair("Castellano", PSP_SYSTEMPARAM_LANGUAGE_SPANISH); - langValuesMapping["es_LA"] = std::make_pair("Latino", PSP_SYSTEMPARAM_LANGUAGE_SPANISH); + langValuesMapping["es_ES"] = std::make_pair("Castellano (España)", PSP_SYSTEMPARAM_LANGUAGE_SPANISH); + langValuesMapping["es_LA"] = std::make_pair("Español (América Latina)", PSP_SYSTEMPARAM_LANGUAGE_SPANISH); langValuesMapping["de_DE"] = std::make_pair("Deutsch", PSP_SYSTEMPARAM_LANGUAGE_GERMAN); langValuesMapping["it_IT"] = std::make_pair("Italiano", PSP_SYSTEMPARAM_LANGUAGE_ITALIAN); langValuesMapping["nl_NL"] = std::make_pair("Nederlands", PSP_SYSTEMPARAM_LANGUAGE_DUTCH); langValuesMapping["pt_PT"] = std::make_pair("Português", PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE); - langValuesMapping["pt_BR"] = std::make_pair("Brasileiro", PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE); + langValuesMapping["pt_BR"] = std::make_pair("Português Brasileiro", PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE); langValuesMapping["ru_RU"] = std::make_pair("Русский", PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN); langValuesMapping["ko_KR"] = std::make_pair("한국어", PSP_SYSTEMPARAM_LANGUAGE_KOREAN); langValuesMapping["zh_TW"] = std::make_pair("繁體中文", PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL); diff --git a/Windows/WindowsHost.cpp b/Windows/WindowsHost.cpp index 76acb3a272..8d2448c2b0 100644 --- a/Windows/WindowsHost.cpp +++ b/Windows/WindowsHost.cpp @@ -364,7 +364,7 @@ bool WindowsHost::CreateDesktopShortcut(std::string argumentPath, std::string ga // Sanitize the game title for banned characters. const char bannedChars[] = "<>:\"/\\|?*"; for (size_t i = 0; i < gameTitle.size(); i++) { - for (int c = 0; c < strlen(bannedChars); c++) { + for (size_t c = 0; c < strlen(bannedChars); c++) { if (gameTitle[i] == bannedChars[c]) { gameTitle[i] = '_'; break; diff --git a/lang b/lang index 1997dbc1ec..35452f047f 160000 --- a/lang +++ b/lang @@ -1 +1 @@ -Subproject commit 1997dbc1ec67420e75f5f1d0dd4019a48007096f +Subproject commit 35452f047fb854d4c6326d1660be3c9d39601481 diff --git a/pspautotests b/pspautotests index c88f6054ce..8b0c30efe5 160000 --- a/pspautotests +++ b/pspautotests @@ -1 +1 @@ -Subproject commit c88f6054cee483e292500e3cb38c896404adc975 +Subproject commit 8b0c30efe52e0c799a99a632e5e743a56375d3ec