You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/move_saves.py
+31-9
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,27 @@
1
-
fromabslimportapp
2
-
fromabslimportflags
3
1
importos
4
2
importshutil
5
3
importsys
6
4
importtime
7
5
6
+
fromabslimportapp, flags
7
+
8
8
FLAGS=flags.FLAGS
9
9
10
-
flags.DEFINE_bool("setup_saves", False, "Will set up the TAS saves and store your saves in a new folder called 'Save Backups'")
11
-
flags.DEFINE_bool("restore_saves", False, "Will restore your saves and remove the TAS saves.")
10
+
flags.DEFINE_bool(
11
+
"setup_saves",
12
+
False,
13
+
"Will set up the TAS saves and store your saves in a new folder called 'Save Backups'",
14
+
)
15
+
flags.DEFINE_bool(
16
+
"restore_saves", False, "Will restore your saves and remove the TAS saves."
17
+
)
18
+
19
+
flags.DEFINE_string(
20
+
"user_path",
21
+
"",
22
+
"Set this if your Documents folder, and thus your 'SQUARE ENIX\\FINAL FANTASY X&X-2 HD Remaster folder' is in a different location.",
23
+
)
12
24
13
-
flags.DEFINE_string("user_path", "", "Set this if your Documents folder, and thus your 'SQUARE ENIX\\FINAL FANTASY X&X-2 HD Remaster folder' is in a different location.")
14
25
15
26
def_move_file(name, src_dir, dest_dir, mod_time):
16
27
src_full_path=os.path.join(src_dir, name)
@@ -33,14 +44,24 @@ def setup_saves():
33
44
tas_saves=".\\tas_saves"
34
45
print(f"Copying save files from '{square_saves}' to '.\\Save Backups'")
35
46
shutil.copytree(square_saves, ".\\Save Backups")
36
-
print(f"Copying TAS save files from '.\\tas_saves' to {square_saves}' and modifying timestamps.")
47
+
print(
48
+
f"Copying TAS save files from '.\\tas_saves' to {square_saves}' and modifying timestamps."
0 commit comments