aboutsummaryrefslogtreecommitdiff
path: root/rom2cart.c
diff options
context:
space:
mode:
Diffstat (limited to 'rom2cart.c')
-rw-r--r--rom2cart.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/rom2cart.c b/rom2cart.c
index f6f8754..7eaaa06 100644
--- a/rom2cart.c
+++ b/rom2cart.c
@@ -561,9 +561,11 @@ int main(int argc, char **argv) {
fprintf(stderr, SELF ": input file is empty!\n");
exit(1);
} else if(size % 4096) {
- fprintf(stderr, SELF ": %s: input size not a multiple of 4KB!\n",
- (type_override ? "warning" : "fatal"));
- if(!type_override) exit(1);
+ if(size != 2048) {
+ fprintf(stderr, SELF ": %s: input size %d bytes, not a multiple of 4KB, and not 2KB either!\n",
+ (type_override ? "warning" : "fatal"), size);
+ if(!type_override) exit(1);
+ }
}
if(!type) {