From d63d3698474925d5843ada74a7fc67aaa3eb3a57 Mon Sep 17 00:00:00 2001 From: dc37 Date: Mon, 4 Mar 2019 00:43:14 -0800 Subject: [PATCH] Update main file to actually run --- src/smp/SuperMarioPaint.java | 58 ++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/smp/SuperMarioPaint.java b/src/smp/SuperMarioPaint.java index 5aae0c71..f82135b8 100644 --- a/src/smp/SuperMarioPaint.java +++ b/src/smp/SuperMarioPaint.java @@ -55,7 +55,7 @@ * @author j574y923 * * @since 2012.08.16 - * @version 1.1.1 + * @version 1.2.1 */ public class SuperMarioPaint extends Application { @@ -395,34 +395,34 @@ public void changed(ObservableValue 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