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