From 1001323d7b0f0bcd7361edf6735350054dd9d47a Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Fri, 19 Jul 2024 19:45:56 +0200 Subject: [PATCH] Fix PSP build --- src/TranslationManager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/TranslationManager.cpp b/src/TranslationManager.cpp index e0ad55d..8efa684 100644 --- a/src/TranslationManager.cpp +++ b/src/TranslationManager.cpp @@ -14,6 +14,13 @@ #include "utils.hpp" +#ifdef __PSP__ + #include +#else + #include +#endif + + TranslationManager::TranslationManager() : dictionary_manager(std::unique_ptr(new tinygettext::UnixFileSystem)) { loadTranslations(); } @@ -48,7 +55,6 @@ std::vector TranslationManager::getSystemLanguageList() { std::string locale = "C"; #ifdef __PSP__ - #include int current_locale_int; sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_LANGUAGE, ¤t_locale_int); switch(current_locale_int) { @@ -90,7 +96,6 @@ std::vector TranslationManager::getSystemLanguageList() { break; } #else - #include char * locale_c_str = setlocale(LC_ALL, ""); if (locale_c_str){ locale = std::string(locale_c_str);