KOTerra / Strafe-Overdead

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Restart app after config preferences change #28

Closed KOTerra closed 7 months ago

KOTerra commented 7 months ago

If for example in the settings menu the resolution or the window mode is changed, those things can only be modified when the app starts by loading configs from preferences, so the app has to restart after settings are saved

KOTerra commented 7 months ago

https://javadoc.io/doc/com.badlogicgames.gdx/gdx/latest/com/badlogic/gdx/LifecycleListener.html https://javadoc.io/static/com.badlogicgames.gdx/gdx/1.12.1/com/badlogic/gdx/ApplicationListener.html can detect when app is about to dispose, on an Gdx.app.exit() call and do stuff there to somehow restart maybe

also maybe tis works https://javadoc.io/static/com.badlogicgames.gdx/gdx/1.12.1/com/badlogic/gdx/Graphics.html

KOTerra commented 7 months ago

works with Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode()); so no need to restart maybe

KOTerra commented 7 months ago

I think this is no more needed, it s achieveable with no restarts