mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Merge branch 'language_sdl' of https://github.com/edward-san/zdoom
This commit is contained in:
commit
8aff59e704
1 changed files with 8 additions and 7 deletions
|
@ -97,13 +97,7 @@ SDL_Cursor *X11Cursor;
|
||||||
SDL_Cursor *FirstCursor;
|
SDL_Cursor *FirstCursor;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DWORD LanguageIDs[4] =
|
DWORD LanguageIDs[4];
|
||||||
{
|
|
||||||
MAKE_ID ('e','n','u',0),
|
|
||||||
MAKE_ID ('e','n','u',0),
|
|
||||||
MAKE_ID ('e','n','u',0),
|
|
||||||
MAKE_ID ('e','n','u',0)
|
|
||||||
};
|
|
||||||
|
|
||||||
int (*I_GetTime) (bool saveMS);
|
int (*I_GetTime) (bool saveMS);
|
||||||
int (*I_WaitForTic) (int);
|
int (*I_WaitForTic) (int);
|
||||||
|
@ -326,6 +320,13 @@ void I_WaitVBL (int count)
|
||||||
//
|
//
|
||||||
void SetLanguageIDs ()
|
void SetLanguageIDs ()
|
||||||
{
|
{
|
||||||
|
size_t langlen = strlen(language);
|
||||||
|
|
||||||
|
DWORD lang = (langlen < 2 || langlen > 3) ?
|
||||||
|
MAKE_ID('e','n','u','0') :
|
||||||
|
MAKE_ID(language[0],language[1],language[2],'0');
|
||||||
|
|
||||||
|
LanguageIDs[3] = LanguageIDs[2] = LanguageIDs[1] = LanguageIDs[0] = lang;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue