mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-26 23:50:45 +07:00
8a327fa7be
* Callback to exit the game by 'Back' button * Prompt dialog for the game exit * Additional strings for translations are generated * Do not show exit prompt dialog twice
21 lines
726 B
Java
21 lines
726 B
Java
package com.unciv.app;
|
|
|
|
import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
|
|
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
|
|
|
|
import org.robovm.apple.foundation.NSAutoreleasePool;
|
|
import org.robovm.apple.uikit.UIApplication;
|
|
|
|
class IOSLauncher extends IOSApplication.Delegate {
|
|
@Override
|
|
protected IOSApplication createApplication() {
|
|
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
|
|
return new IOSApplication(new com.unciv.UncivGame("IOS"), config);
|
|
}
|
|
|
|
public static void main(String[] argv) {
|
|
NSAutoreleasePool pool = new NSAutoreleasePool();
|
|
UIApplication.main(argv, null, IOSLauncher.class);
|
|
pool.close();
|
|
}
|
|
} |