mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 08:19:33 +00:00
revert that thingy
This commit is contained in:
1 parent
20a3b640ce
commit
fb71e7a05c
1 file changed
+8
-17
@@ -64,7 +64,14 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
fixLauncherPath()
|
||||
try {
|
||||
// fixes bugs specific to the new app directory, such as package name
|
||||
LauncherFix.loadLibrary()
|
||||
LauncherFix.setOriginalDataPath(Constants.GJ_DATA_DIR)
|
||||
LauncherFix.setDataPath(filesDir.path)
|
||||
} catch (e: UnsatisfiedLinkError) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
Cocos2dxHelper.init(this, this)
|
||||
|
||||
@@ -96,22 +103,6 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
|
||||
}
|
||||
}
|
||||
|
||||
private fun fixLauncherPath() {
|
||||
try {
|
||||
// fixes bugs specific to the new app directory, such as package name
|
||||
LauncherFix.loadLibrary()
|
||||
getExternalFilesDir(null)?.let { dir ->
|
||||
val externalPath = dir.path + File.separator + "save"
|
||||
|
||||
LauncherFix.setOriginalDataPath(Constants.GJ_DATA_DIR)
|
||||
LauncherFix.setDataPath(externalPath)
|
||||
}
|
||||
|
||||
} catch (e: UnsatisfiedLinkError) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("UnsafeDynamicallyLoadedCode")
|
||||
private fun loadGeodeLibrary(): Boolean {
|
||||
// Load Geode if exists
|
||||
|
||||
Reference in new issue
Block a user