Skip to content

Commit

Permalink
Update main file to actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
DC37 committed Mar 4, 2019
1 parent 888ad81 commit d63d369
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/smp/SuperMarioPaint.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* @author j574y923
*
* @since 2012.08.16
* @version 1.1.1
* @version 1.2.1
*/
public class SuperMarioPaint extends Application {

Expand Down Expand Up @@ -395,34 +395,34 @@ public void changed(ObservableValue<? extends Boolean> ov,
* @param args
* Sets debug options on or off.
*/
// public static void main(String[] args) {
// if (args.length == 0) {
// try {
// LauncherImpl.launchApplication(SuperMarioPaint.class,
// SplashScreen.class, args);
// } catch (Exception e) {
// e.printStackTrace();
// }
// } else if (args.length > 0
// && (args[0].equals("--debug") || args[0].equals("--d"))) {
// if (args[1] != null) {
// try {
// Settings.setDebug(Integer.parseInt(args[1]));
// } catch (NumberFormatException e) {
// Settings.setDebug(1);
// }
// } else {
// Settings.setDebug(1);
// }
// try {
// LauncherImpl.launchApplication(SuperMarioPaint.class,
// SplashScreen.class, args);
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
//
// }
public static void main(String[] args) {
if (args.length == 0) {
try {
LauncherImpl.launchApplication(SuperMarioPaint.class,
SplashScreen.class, args);
} catch (Exception e) {
e.printStackTrace();
}
} else if (args.length > 0
&& (args[0].equals("--debug") || args[0].equals("--d"))) {
if (args[1] != null) {
try {
Settings.setDebug(Integer.parseInt(args[1]));
} catch (NumberFormatException e) {
Settings.setDebug(1);
}
} else {
Settings.setDebug(1);
}
try {
LauncherImpl.launchApplication(SuperMarioPaint.class,
SplashScreen.class, args);
} catch (Exception e) {
e.printStackTrace();
}
}

}

/**
* Gets the soundfont Loader. This function will probably only be temporary
Expand Down

0 comments on commit d63d369

Please sign in to comment.