mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unused addresses in localisation.c
This commit is contained in:
parent
d3b7a0cbb9
commit
de8e5b9f55
|
@ -15,7 +15,6 @@
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
#include "../addresses.h"
|
|
||||||
|
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -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");
|
log_error("Localisation CALLPROC reached. Please contact a dev");
|
||||||
assert(false);
|
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.
|
* Returns a pointer to the null terminator of the given UTF-8 string.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue