mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 00:18:18 +00:00
remove unnecessary
This commit is contained in:
2 files changed
-10
No files matched your search
@@ -1,9 +1,5 @@
|
||||
package com.geode.launcher
|
||||
|
||||
object Native {
|
||||
var isInitRun = false
|
||||
var isGeodeLoaded = false
|
||||
|
||||
@JvmStatic
|
||||
external fun postGameInit()
|
||||
}
|
||||
@@ -68,12 +68,6 @@ class Cocos2dxRenderer : GLSurfaceView.Renderer {
|
||||
|
||||
override fun onSurfaceCreated(gl10: GL10?, eglConfig: EGLConfig?) {
|
||||
nativeInit(screenWidth, screenHeight)
|
||||
|
||||
if (Native.isGeodeLoaded && !Native.isInitRun) {
|
||||
Native.postGameInit()
|
||||
Native.isInitRun = true
|
||||
}
|
||||
|
||||
lastTickInNanoSeconds = System.nanoTime()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user