1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Restructuring glue code to make it easier to extend

This commit is contained in:
Bastiaan Olij
2019-03-13 23:51:55 +11:00
parent 1ab9b86a21
commit b2c0a687f1
14 changed files with 691 additions and 374 deletions

View File

@@ -606,6 +606,9 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
for (int i = 0; i < singleton_count; i++) {
singletons[i].onMainDestroy();
}
GodotLib.ondestroy(this);
super.onDestroy();
}

View File

@@ -46,6 +46,7 @@ public class GodotLib {
*/
public static native void initialize(Godot p_instance, Object p_asset_manager, boolean use_apk_expansion);
public static native void ondestroy(Godot p_instance);
public static native void setup(String[] p_cmdline);
public static native void resize(int width, int height);
public static native void newcontext(boolean p_32_bits);