Fix overwriting of OpenArena autoexec

This commit is contained in:
Petr Bartos 2022-04-09 21:47:29 +02:00
parent 8498047b83
commit 51ef5302e6
1 changed files with 1 additions and 1 deletions

View File

@ -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