Skip to content

Commit 62c10fe

Browse files
committed
fix move
1 parent a267bbe commit 62c10fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tc2_launcher/run.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import threading
88
import zipfile
99
from pathlib import Path
10-
from shutil import move, rmtree
10+
from shutil import copytree, rmtree
1111
from time import sleep
1212
from timeit import default_timer as timer
1313

@@ -369,12 +369,11 @@ def launch_game(
369369

370370
# Resolve options with persistence
371371
settings = read_settings(dest)
372-
# TODO: condebug prevents an access violation crash to stdout or something, need to fix the Popen call eventually
373372
if sys.platform.startswith("win"):
374-
default_args = ["-steam", "-particles", "1", "-condebug"]
373+
default_args = ["-steam", "-particles", "1"]
375374
default_cmds = ["+ip", "127.0.0.1"]
376375
else:
377-
default_args = ["-condebug"]
376+
default_args = []
378377
default_cmds = []
379378
if not extra_options:
380379
extra_options = settings.get("opts")
@@ -478,7 +477,8 @@ def change_install_folder(new_game_dir: Path):
478477
old_game_dir = get_game_dir()
479478
if old_game_dir.exists():
480479
try:
481-
move(old_game_dir, new_game_dir)
480+
copytree(old_game_dir, new_game_dir, dirs_exist_ok=True)
481+
rmtree(old_game_dir)
482482
except Exception as e:
483483
print(f"ERROR: Failed to move game directory: {e}")
484484
return

0 commit comments

Comments
 (0)