mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
UnicodeMakeUpperCase move + arg fix
This commit is contained in:
parent
9dba2386bb
commit
b0becb5a2d
@ -31,6 +31,20 @@ UnicodeStrlen(const wchar *str)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UnicodeMakeUpperCase(wchar *dst, const wchar *src) //idk what to do with it, seems to be incorrect implementation by R*
|
||||||
|
{
|
||||||
|
while (*src != '\0') {
|
||||||
|
if (*src < 'a' || *src > 'z')
|
||||||
|
*dst = *src;
|
||||||
|
else
|
||||||
|
*dst = *src - 32;
|
||||||
|
dst++;
|
||||||
|
src++;
|
||||||
|
}
|
||||||
|
*dst = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
CFontDetails CFont::Details;
|
CFontDetails CFont::Details;
|
||||||
int16 CFont::NewLine;
|
int16 CFont::NewLine;
|
||||||
CSprite2d CFont::Sprite[MAX_FONTS];
|
CSprite2d CFont::Sprite[MAX_FONTS];
|
||||||
|
@ -4,6 +4,7 @@ void AsciiToUnicode(const char *src, wchar *dst);
|
|||||||
void UnicodeStrcpy(wchar *dst, const wchar *src);
|
void UnicodeStrcpy(wchar *dst, const wchar *src);
|
||||||
void UnicodeStrcat(wchar *dst, wchar *append);
|
void UnicodeStrcat(wchar *dst, wchar *append);
|
||||||
int UnicodeStrlen(const wchar *str);
|
int UnicodeStrlen(const wchar *str);
|
||||||
|
void UnicodeMakeUpperCase(wchar *dst, const wchar *src);
|
||||||
|
|
||||||
struct CFontDetails
|
struct CFontDetails
|
||||||
{
|
{
|
||||||
|
@ -431,6 +431,7 @@ CData::Unload(void)
|
|||||||
numChars = 0;
|
numChars = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
CMissionTextOffsets::Load(size_t table_size, int file, size_t *offset, int)
|
CMissionTextOffsets::Load(size_t table_size, int file, size_t *offset, int)
|
||||||
{
|
{
|
||||||
#if DUMB
|
#if DUMB
|
||||||
@ -457,7 +458,6 @@ CMissionTextOffsets::Load(size_t table_size, int file, size_t *offset, int)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
char*
|
char*
|
||||||
UnicodeToAscii(wchar *src)
|
UnicodeToAscii(wchar *src)
|
||||||
{
|
{
|
||||||
@ -525,20 +525,6 @@ UnicodeToAsciiForMemoryCard(wchar *src)
|
|||||||
return aStr;
|
return aStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
UnicodeMakeUpperCase(wchar *dst, wchar *src) //idk what to do with it, seems to be incorrect implementation by R*
|
|
||||||
{
|
|
||||||
while (*src != '\0') {
|
|
||||||
if (*src < 'a' || *src > 'z')
|
|
||||||
*dst = *src;
|
|
||||||
else
|
|
||||||
*dst = *src - 32;
|
|
||||||
dst++;
|
|
||||||
src++;
|
|
||||||
}
|
|
||||||
*dst = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TextCopy(wchar *dst, const wchar *src)
|
TextCopy(wchar *dst, const wchar *src)
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,6 @@ char *UnicodeToAscii(wchar *src);
|
|||||||
char *UnicodeToAsciiForSaveLoad(wchar *src);
|
char *UnicodeToAsciiForSaveLoad(wchar *src);
|
||||||
char *UnicodeToAsciiForMemoryCard(wchar *src);
|
char *UnicodeToAsciiForMemoryCard(wchar *src);
|
||||||
void TextCopy(wchar *dst, const wchar *src);
|
void TextCopy(wchar *dst, const wchar *src);
|
||||||
void UnicodeMakeUpperCase(wchar *dst, wchar *src);
|
|
||||||
|
|
||||||
struct CKeyEntry
|
struct CKeyEntry
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user