exit now gracefully calls gdx.app.exit

This commit is contained in:
minjaesong
2018-12-03 00:34:31 +09:00
parent 0902dac646
commit ea490435eb
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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) {