Fix overwriting of OpenArena autoexec

This commit is contained in:
Petr Bartos 2022-04-09 21:47:29 +02:00 committed by Simon
parent 88cde379bd
commit 34bdad8087

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