mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
exit now gracefully calls gdx.app.exit
This commit is contained in:
@@ -108,6 +108,7 @@ public class AppLoader implements ApplicationListener {
|
||||
appConfig.backgroundFPS = 9999;
|
||||
appConfig.foregroundFPS = 9999;
|
||||
appConfig.title = GAME_NAME;
|
||||
appConfig.forceExit = false;
|
||||
|
||||
new LwjglApplication(new AppLoader(), appConfig);
|
||||
}
|
||||
|
||||
@@ -93,7 +93,8 @@ open class UIRemoCon(treeRepresentation: QNDTreeNode<String>) : UICanvas() {
|
||||
selectedItem?.let {
|
||||
// selection change
|
||||
if (it.labelText == "MENU_LABEL_QUIT") {
|
||||
System.exit(0)
|
||||
//System.exit(0)
|
||||
Gdx.app.exit()
|
||||
}
|
||||
else if (it.labelText == "MENU_LABEL_RETURN") {
|
||||
if (currentRemoConContents.parent != null) {
|
||||
|
||||
Reference in New Issue
Block a user