From 51ef5302e67702e35210eba03bd76389baa3911e Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Sat, 9 Apr 2022 21:47:29 +0200 Subject: [PATCH] Fix overwriting of OpenArena autoexec --- .../app/src/main/java/com/drbeef/ioq3quest/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/drbeef/ioq3quest/MainActivity.java b/android/app/src/main/java/com/drbeef/ioq3quest/MainActivity.java index 1e2338ce..6aaa683a 100644 --- a/android/app/src/main/java/com/drbeef/ioq3quest/MainActivity.java +++ b/android/app/src/main/java/com/drbeef/ioq3quest/MainActivity.java @@ -156,7 +156,7 @@ public class MainActivity extends SDLActivity // implements KeyEvent.Callback } public void copy_asset(String path, String name, String newName, boolean force) { - File f = new File(path + "/" + name); + File f = new File(path + "/" + newName); if (!f.exists() || force) { //Ensure we have an appropriate folder