mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-14 01:59:19 +03:00
Fix encoding issue with macro generation
Fixes #2. The problem here was that init_member_functions assumed ASCII or SJIS encoding of function/struct names in the ain file. Now it will convert to UTF-8 when analyzing member functions. This commit also removes the --ain-encoding option to ainedit. --output-encoding should always match the encoding of the input ain file. --transcode can be used to change the encoding before running running further ainedit commands.
This commit is contained in:
@@ -329,6 +329,7 @@ struct ain *ain_open(const char *path, int *error);
|
||||
struct ain *ain_new(int version);
|
||||
void ain_decrypt(uint8_t *buf, size_t len);
|
||||
|
||||
void ain_init_member_functions(struct ain *ain, char *(*to_ascii)(const char*));
|
||||
struct ain_function *ain_get_function(struct ain *ain, char *name);
|
||||
int ain_get_function_no(struct ain *ain, char *name);
|
||||
int ain_get_function_index(struct ain *ain, struct ain_function *f);
|
||||
|
||||
Reference in New Issue
Block a user