multi lang support

This commit is contained in:
2021-04-27 22:28:00 +02:00
parent a0e94035db
commit 176d0d4f90
14 changed files with 510 additions and 162 deletions

10
source/lang.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include "lang.h"
// Inicializa los textos del juego en el idioma seleccionado
void initTextStrings(std::string *textStrings, Uint8 lang)
{
if ((lang < 0) || (lang > MAX_LANGUAGES))
lang = en_UK;
for (int i = 0; i < MAX_TEXT_STRINGS; i++)
textStrings[i] = gTextStrings[i][lang].c_str();
}