mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
..
This commit is contained in:
@@ -96,6 +96,9 @@ public class Main {
|
||||
|
||||
@Override
|
||||
public void closeSplashScreen() {
|
||||
// FIXME: on Linux system it can't close splashscreen image or crash with SIGSEGV? How come it works on other OS?
|
||||
if (OperatingSystem.isUnix() || OperatingSystem.isSolaris())
|
||||
return;
|
||||
//could throw exception..
|
||||
try {
|
||||
Optional.ofNullable(SplashScreen.getSplashScreen()).ifPresent(SplashScreen::close);
|
||||
|
||||
@@ -159,6 +159,7 @@ public class Forge implements ApplicationListener {
|
||||
public void create() {
|
||||
//install our error handler
|
||||
ExceptionHandler.registerErrorHandling();
|
||||
getDeviceAdapter().closeSplashScreen();
|
||||
|
||||
GuiBase.setIsAndroid(Gdx.app.getType() == Application.ApplicationType.Android);
|
||||
|
||||
@@ -257,8 +258,6 @@ public class Forge implements ApplicationListener {
|
||||
/* call preloadExtendedArt here, if we put it above we will *
|
||||
* get error: No OpenGL context found in the current thread. */
|
||||
preloadExtendedArt();
|
||||
// should be after create method but try to close this at a later time.
|
||||
getDeviceAdapter().closeSplashScreen();
|
||||
});
|
||||
};
|
||||
//see if app or assets need updating
|
||||
|
||||
Reference in New Issue
Block a user