forked from geode-sdk/android-launcher
fix broken song download
This commit is contained in:
1 file changed
+22
-2
@@ -28,7 +28,7 @@ import org.cocos2dx.lib.Cocos2dxHelper
|
||||
import org.cocos2dx.lib.Cocos2dxRenderer
|
||||
import org.fmod.FMOD
|
||||
|
||||
class GeometryDashActivity : ComponentActivity() {
|
||||
class GeometryDashActivity : ComponentActivity(), Cocos2dxHelper.Cocos2dxHelperListener {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
setupUIState()
|
||||
|
||||
@@ -78,9 +78,10 @@ class GeometryDashActivity : ComponentActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
Cocos2dxHelper.init(this, this)
|
||||
|
||||
JniToCpp.setupHSSAssets(
|
||||
applicationInfo.sourceDir,
|
||||
gdPackageInfo.applicationInfo.sourceDir,
|
||||
Environment.getExternalStorageDirectory().absolutePath
|
||||
)
|
||||
Cocos2dxHelper.nativeSetApkPath(gdPackageInfo.applicationInfo.sourceDir)
|
||||
@@ -107,4 +108,23 @@ class GeometryDashActivity : ComponentActivity() {
|
||||
super.onDestroy()
|
||||
FMOD.close()
|
||||
}
|
||||
|
||||
override fun runOnGLThread(pRunnable: Runnable) {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
override fun showDialog(pTitle: String, pMessage: String) {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
override fun showEditTextDialog(
|
||||
pTitle: String,
|
||||
pMessage: String,
|
||||
pInputMode: Int,
|
||||
pInputFlag: Int,
|
||||
pReturnType: Int,
|
||||
pMaxLength: Int
|
||||
) {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user