mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Copied files in Android should now overwrite existing files
This commit is contained in:
@ -55,7 +55,7 @@ class AndroidLauncher : AndroidApplication() {
|
|||||||
|
|
||||||
// Copy external mod directory (with data user put in it) to internal (where it can be read)
|
// Copy external mod directory (with data user put in it) to internal (where it can be read)
|
||||||
if (!externalModsDir.exists()) externalModsDir.mkdirs() // this can fail sometimes, which is why we check if it exists again in the next line
|
if (!externalModsDir.exists()) externalModsDir.mkdirs() // this can fail sometimes, which is why we check if it exists again in the next line
|
||||||
if (externalModsDir.exists()) externalModsDir.copyRecursively(internalModsDir)
|
if (externalModsDir.exists()) externalModsDir.copyRecursively(internalModsDir, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
|
Reference in New Issue
Block a user