shithub: rgbds

Download patch

ref: cd52e3c56c60298718464458318487a1c5a6018d
parent: 5931973029e9f38e875804e7034927534976e11f
author: bentley <[email protected]>
date: Wed Jan 13 04:48:13 EST 2010

move ramsize option from -m to -r

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -55,8 +55,8 @@
 	printf("RGBFix v" RGBFIX_VERSION
 	    " (part of ASMotor " ASMOTOR_VERSION ")\n\n");
 
-	printf("usage: rgbfix [-dcjoqsv] [-b mbc_type] [-k licensee_str] [-m ram_size]\n");
-	printf("\t    [-p pad_value] [-t title_str] image[.gb]\n");
+	printf("usage: rgbfix [-dcjoqsv] [-b mbc_type] [-k licensee_str] [-p pad_value]\n");
+	printf("\t    [-r ram_size] [-t title_str] image[.gb]\n");
 
 	exit(EX_USAGE);
 }
@@ -193,13 +193,13 @@
 		case 'd':
 			ulOptions |= OPTF_DEBUG;
 			break;
-		case 'm':
+		case 'r':
 			ulOptions |= OPTF_RAMSIZE;
 			ram_size = strtoul(optarg, &ep, 0);
 			if (optarg[0] == '\0' || *ep != '\0')
-				errx(EX_USAGE, "Invalid argument for option 'm'");
+				errx(EX_USAGE, "Invalid argument for option 'r'");
 			if (ram_size < 0 || ram_size > 0xFF)
-				errx(EX_USAGE, "Argument for option 'm' must be between 0 and 0xFF");
+				errx(EX_USAGE, "Argument for option 'r' must be between 0 and 0xFF");
 			break;
 		case 'j':
 			ulOptions |= OPTF_JAPAN;
@@ -382,7 +382,7 @@
 			}
 		}
 		/*
-		 * -m (Set ram size) option code
+		 * -r (Set ram size) option code
 		 *
 		 */
 		if (ulOptions & OPTF_RAMSIZE) {