Skip to content

Commit 0e93810

Browse files
authored
Fixes #26
1 parent 3142a33 commit 0e93810

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

patcher.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import glob
66
import subprocess
77

8-
version = '15_2'
8+
version = '15_5'
99

1010
output = 'am2r_' + version
1111

@@ -50,7 +50,7 @@ def _getch():
5050
if os.path.isdir('AM2R.AppDir'):
5151
rmtree('AM2R.AppDir')
5252

53-
print("-------------------------------------------\n\nAM2R 1.5.1 Python Autopatching Utility\nScripted by Lojemiru\n\n-------------------------------------------\n")
53+
print("-------------------------------------------\n\nAM2R 1.5.5 Python Autopatching Utility\nScripted by Lojemiru\n\n-------------------------------------------\n")
5454

5555
# Check for AM2R_11.zip...
5656
if os.path.isfile('AM2R_11.zip'):
@@ -240,7 +240,9 @@ def _getch():
240240
# remove(output+"/game.unx")
241241

242242
copytree(output, "utilities/android/assets")
243-
copy("data/android/AM2R.ini", "utilities/android/assets")
243+
# Only copy the file over if it exists
244+
if (os.path.exists("data/android/AM2R.ini")):
245+
copy("data/android/AM2R.ini", "utilities/android/assets")
244246

245247
# Install new datafiles...
246248
print("\nInstalling new datafiles...")

0 commit comments

Comments
 (0)