mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 11:04:15 +01:00
restore Text.cpp
This commit is contained in:
parent
b8f633de24
commit
1f1782c587
@ -271,9 +271,9 @@ UnicodeToAscii(wchar *src)
|
|||||||
{
|
{
|
||||||
static char aStr[256];
|
static char aStr[256];
|
||||||
int len;
|
int len;
|
||||||
for(len = 0; *src != '\0' && len < ARRAY_SIZE(aStr)-1; len++, src++)
|
for(len = 0; *src != '\0' && len < 256-1; len++, src++)
|
||||||
#ifdef MORE_LANGUAGES
|
#ifdef MORE_LANGUAGES
|
||||||
if(*src < 128 || ((CGame::russianGame || CGame::japaneseGame) && *src < ARRAY_SIZE(aStr)))
|
if(*src < 128 || ((CGame::russianGame || CGame::japaneseGame) && *src < 256))
|
||||||
#else
|
#else
|
||||||
if(*src < 128)
|
if(*src < 128)
|
||||||
#endif
|
#endif
|
||||||
@ -289,8 +289,8 @@ UnicodeToAsciiForSaveLoad(wchar *src)
|
|||||||
{
|
{
|
||||||
static char aStr[256];
|
static char aStr[256];
|
||||||
int len;
|
int len;
|
||||||
for(len = 0; *src != '\0' && len < ARRAY_SIZE(aStr)-1; len++, src++)
|
for(len = 0; *src != '\0' && len < 256-1; len++, src++)
|
||||||
if(*src < ARRAY_SIZE(aStr))
|
if(*src < 256)
|
||||||
aStr[len] = *src;
|
aStr[len] = *src;
|
||||||
else
|
else
|
||||||
aStr[len] = '#';
|
aStr[len] = '#';
|
||||||
@ -303,8 +303,8 @@ UnicodeToAsciiForMemoryCard(wchar *src)
|
|||||||
{
|
{
|
||||||
static char aStr[256];
|
static char aStr[256];
|
||||||
int len;
|
int len;
|
||||||
for(len = 0; *src != '\0' && len < ARRAY_SIZE(aStr)-1; len++, src++)
|
for(len = 0; *src != '\0' && len < 256-1; len++, src++)
|
||||||
if(*src < ARRAY_SIZE(aStr))
|
if(*src < 256)
|
||||||
aStr[len] = *src;
|
aStr[len] = *src;
|
||||||
else
|
else
|
||||||
aStr[len] = '#';
|
aStr[len] = '#';
|
||||||
|
Loading…
Reference in New Issue
Block a user