diff --git a/src/localisation/localisation.c b/src/localisation/localisation.c index 96135fb0c7..3a108db266 100644 --- a/src/localisation/localisation.c +++ b/src/localisation/localisation.c @@ -15,7 +15,6 @@ #pragma endregion #include "../common.h" -#include "../addresses.h" #ifdef __WINDOWS__ #include @@ -1122,7 +1121,6 @@ void format_string_part(utf8 **dest, rct_string_id format, char **args) // ? log_error("Localisation CALLPROC reached. Please contact a dev"); assert(false); - RCT2_CALLPROC_EBPSAFE(RCT2_ADDRESS(0x0095AFB8, uint32)[format]); } } @@ -1161,40 +1159,6 @@ void format_string_to_upper(utf8 *dest, rct_string_id format, void *args) } } -void generate_string_file() -{ - FILE* f; - uint8** str; - uint8* c; - int i; - - f = fopen("english.txt", "w"); - - for (i = 0; i < 4442; i++) { - str = (RCT2_ADDRESS(0x009BF2D4, uint8*) + (i * 4)); - if (*str == (uint8*)-1) - continue; - c = *str; - - fprintf(f, "STR_%04d :", i); - while (*c != '\0') { - const char *token = format_get_token(*c); - if (token != NULL) { - fprintf(f, "{%s}", token); - } else { - if (*c < 32 || *c > 127) - fprintf(f, "{%d}", *c); - else - fputc(*c, f); - } - c++; - } - fputc('\n', f); - } - - fclose(f); -} - /** * Returns a pointer to the null terminator of the given UTF-8 string. */