Skip to content

Commit

Permalink
simulator: correctly skips the key arg #94 (#95)
Browse files Browse the repository at this point in the history
The */r* argument was the argument that referenced TotalCross's serial license number. 
To keep backwards compatibility, we just skipped what it would do, but we didn't do it the right way. This patch adjust the argument iterator, it has no effect when being incremented within the `if`.
  • Loading branch information
acmlira authored Aug 7, 2020
1 parent 8fb64a8 commit 4a943e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TotalCrossSDK/src/main/java/totalcross/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ protected void parseArguments(String clazz, String... args) {
}
}
System.out.println("Screen is " + toWidth + "x" + toHeight + "x" + toBpp);
} else if (args[i++].equalsIgnoreCase("/r")) {
// Ignore next argument
} else if (args[i].equalsIgnoreCase("/r")) {
++i;
} else if (args[i].equalsIgnoreCase("/pos")) /* x,y */
{
String[] scr = tokenizeString(args[++i].toLowerCase(), ',');
Expand Down

0 comments on commit 4a943e4

Please sign in to comment.