Skip to content

Commit

Permalink
fix arguments parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeykt committed Apr 10, 2024
1 parent 4379e5a commit d053a46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/mcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,31 +1161,26 @@ int main(int argc, char *argv[])
if (!strncmp(argv[i], "-p:", 3))
{
port = atoi(argv[i] + 3);
break;
}
else if (!strcmp(argv[i], "-mk2"))
{
romset = ROM_SET_MK2;
autodetect = false;
break;
}
else if (!strcmp(argv[i], "-st"))
{
romset = ROM_SET_ST;
autodetect = false;
break;
}
else if (!strcmp(argv[i], "-mk1"))
{
romset = ROM_SET_MK1;
autodetect = false;
break;
}
else if (!strcmp(argv[i], "-cm300"))
{
romset = ROM_SET_CM300;
autodetect = false;
break;
}
}
}
Expand Down

0 comments on commit d053a46

Please sign in to comment.