Sort Pokemon and trainer sprite palettes, with Makefile-specified exceptions (#1137)
This avoids the need to define their order via indexed PNG palettes It also avoids the need to use gb-asm-tools' palfix.py on custom sprites Fixes #1136
This commit is contained in:
@@ -417,7 +417,7 @@ struct Buffer *process_template(const char *template_filename, const char *patch
|
||||
int compare_patch(const void *patch1, const void *patch2) {
|
||||
unsigned int offset1 = ((const struct Patch *)patch1)->offset;
|
||||
unsigned int offset2 = ((const struct Patch *)patch2)->offset;
|
||||
return offset1 > offset2 ? 1 : offset1 < offset2 ? -1 : 0;
|
||||
return (offset1 > offset2) - (offset1 < offset2);
|
||||
}
|
||||
|
||||
bool verify_completeness(FILE *restrict orig_rom, FILE *restrict new_rom, struct Buffer *patches) {
|
||||
|
Reference in New Issue
Block a user