remove unnecessary

This commit is contained in:
qimiko committed 2023-06-05 16:52:26 -07:00
1 parent c94bb86af1
commit 7e3575c4a8
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()
}