fix broken song download

This commit is contained in:
qimiko committed 2022-05-22 19:49:49 -07:00
1 parent b9c237340a
commit 5cb05795f1
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")
}
}