[makerom] misc

This commit is contained in:
jakcron
2015-12-17 16:13:50 +08:00
parent 94c4ba7b93
commit 4d9f77b399
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -49,14 +49,12 @@ int ParseArgs(int argc, char *argv[], user_settings *set)
// Parsing Arguments
int set_result;
int i = 1;
while (i < argc) {
for (int i = 1; i < argc; i += set_result) {
set_result = SetArgument(argc, i, argv, set);
if (set_result < 1) {
fprintf(stderr, "[RESULT] Invalid arguments, see '%s -help'\n", argv[0]);
return set_result;
}
i += set_result;
}
// Checking arguments