1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

implement utf8, part 25 (bug fixes)

This commit is contained in:
IntelOrca
2015-08-03 14:29:05 +01:00
parent 7bcb12503a
commit 33929d3ac4
2 changed files with 2 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ static utf8 *convert_multibyte_charset(const char *src, int languageId)
codepoint = convert_specific_language_character_to_unicode(languageId, codepoint);
dst = utf8_write_codepoint(dst, codepoint);
} else {
*dst++ = *ch++;
dst = utf8_write_codepoint(dst, *ch++);
}
}
*dst++ = 0;

View File

@@ -194,7 +194,7 @@ bool openrct2_initialise()
addhook(0x006BB76E, (int)sound_play_panned, 0, (int[]){EAX, EBX, ECX, EDX, EBP, END}, EAX, 0); // remove when all callers are decompiled
addhook(0x006C42D9, (int)scrolling_text_setup, 0, (int[]){EAX, ECX, EBP, END}, 0, EBX); // remove when all callers are decompiled
addhook(0x006C2321, (int)gfx_get_string_width, 0, (int[]){ESI, END}, 0, ECX); // remove when all callers are decompiled
addhook(0x006C2321, (int)format_string, 0, (int[]){EDI, EAX, ECX, END}, 0, 0); // remove when all callers are decompiled
addhook(0x006C2555, (int)format_string, 0, (int[]){EDI, EAX, ECX, END}, 0, 0); // remove when all callers are decompiled
if (!rct2_init())
return false;