(String[] args)
| 21 | public 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); |
nothing calls this directly
no test coverage detected