mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
..
This commit is contained in:
@@ -96,6 +96,9 @@ public class Main {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void closeSplashScreen() {
|
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..
|
//could throw exception..
|
||||||
try {
|
try {
|
||||||
Optional.ofNullable(SplashScreen.getSplashScreen()).ifPresent(SplashScreen::close);
|
Optional.ofNullable(SplashScreen.getSplashScreen()).ifPresent(SplashScreen::close);
|
||||||
|
|||||||
@@ -159,6 +159,7 @@ public class Forge implements ApplicationListener {
|
|||||||
public void create() {
|
public void create() {
|
||||||
//install our error handler
|
//install our error handler
|
||||||
ExceptionHandler.registerErrorHandling();
|
ExceptionHandler.registerErrorHandling();
|
||||||
|
getDeviceAdapter().closeSplashScreen();
|
||||||
|
|
||||||
GuiBase.setIsAndroid(Gdx.app.getType() == Application.ApplicationType.Android);
|
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 *
|
/* call preloadExtendedArt here, if we put it above we will *
|
||||||
* get error: No OpenGL context found in the current thread. */
|
* get error: No OpenGL context found in the current thread. */
|
||||||
preloadExtendedArt();
|
preloadExtendedArt();
|
||||||
// should be after create method but try to close this at a later time.
|
|
||||||
getDeviceAdapter().closeSplashScreen();
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//see if app or assets need updating
|
//see if app or assets need updating
|
||||||
|
|||||||
Reference in New Issue
Block a user