mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-05 08:49:03 +00:00
[makerom] misc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user