mirror of
https://github.com/gbdev/rgbds.git
synced 2026-01-11 02:51:51 +00:00
Implement ENDSECTION (#1211)
This commit is contained in:
@@ -242,7 +242,7 @@ static void registerInput(char const *arg) {
|
||||
printUsage();
|
||||
exit(1);
|
||||
} else if (arg[0] == '\0') { // Empty input path
|
||||
fprintf(stderr, "FATAL: input image path cannot be empty!\n");
|
||||
fprintf(stderr, "FATAL: input image path cannot be empty\n");
|
||||
printUsage();
|
||||
exit(1);
|
||||
} else {
|
||||
|
||||
@@ -109,8 +109,8 @@ void reverse() {
|
||||
auto const tiles = readInto(options.output);
|
||||
uint8_t tileSize = 8 * options.bitDepth;
|
||||
if (tiles.size() % tileSize != 0) {
|
||||
fatal("Tile data size must be a multiple of %" PRIu8 " bytes! (Read %zu)", tileSize,
|
||||
tiles.size());
|
||||
fatal("Tile data size (%zu bytes) is not a multiple of %" PRIu8 " bytes",
|
||||
tiles.size(), tileSize);
|
||||
}
|
||||
|
||||
// By default, assume tiles are not deduplicated, and add the (allegedly) trimmed tiles
|
||||
|
||||
Reference in New Issue
Block a user