mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Advise on how to use -x to make -r work (#1459)
This commit is contained in:
@@ -172,6 +172,15 @@ void reverse() {
|
||||
options.verbosePrint(Options::VERB_INTERM, "Picked reversing width of %zu tiles\n", width);
|
||||
}
|
||||
if (mapSize % width != 0) {
|
||||
if (options.trim == 0 && !tilemap) {
|
||||
fatal(
|
||||
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)\n"
|
||||
"(To proceed anyway with this image width, try passing `-x %zu`)",
|
||||
mapSize,
|
||||
width,
|
||||
width - mapSize % width
|
||||
);
|
||||
}
|
||||
fatal(
|
||||
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)",
|
||||
mapSize,
|
||||
|
||||
Reference in New Issue
Block a user