MCPcopy Create free account
hub / github.com/Card-Forge/forge / main

Method main

forge-gui-mobile-dev/src/forge/app/Main.java:23–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

21public class Main {
22 private static final String versionString = BuildInfo.getVersionString();
23 public static void main(String[] args) {
24 if (!OperatingSystem.isWindows()) {
25 /* Prevents crash on non Windows OS before creating the LWJGL3 window.
26 It seems it defeats the purpose of having a splash image since
27 this is an indicator if the LWJGL3 has booted up succesfully. */
28 closeSplash();
29 }
30 new GameLauncher(versionString, args);
31 }
32 public static void closeSplash() {
33 try {
34 Optional.ofNullable(SplashScreen.getSplashScreen()).ifPresent(SplashScreen::close);

Callers

nothing calls this directly

Calls 2

isWindowsMethod · 0.95
closeSplashMethod · 0.95

Tested by

no test coverage detected