multi lang support
This commit is contained in:
10
source/lang.cpp
Normal file
10
source/lang.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user