mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 01:54:04 +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.backgroundFPS = 9999;
|
||||||
appConfig.foregroundFPS = 9999;
|
appConfig.foregroundFPS = 9999;
|
||||||
appConfig.title = GAME_NAME;
|
appConfig.title = GAME_NAME;
|
||||||
|
appConfig.forceExit = false;
|
||||||
|
|
||||||
new LwjglApplication(new AppLoader(), appConfig);
|
new LwjglApplication(new AppLoader(), appConfig);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,8 @@ open class UIRemoCon(treeRepresentation: QNDTreeNode<String>) : UICanvas() {
|
|||||||
selectedItem?.let {
|
selectedItem?.let {
|
||||||
// selection change
|
// selection change
|
||||||
if (it.labelText == "MENU_LABEL_QUIT") {
|
if (it.labelText == "MENU_LABEL_QUIT") {
|
||||||
System.exit(0)
|
//System.exit(0)
|
||||||
|
Gdx.app.exit()
|
||||||
}
|
}
|
||||||
else if (it.labelText == "MENU_LABEL_RETURN") {
|
else if (it.labelText == "MENU_LABEL_RETURN") {
|
||||||
if (currentRemoConContents.parent != null) {
|
if (currentRemoConContents.parent != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user