|
7 | 7 | import threading |
8 | 8 | import zipfile |
9 | 9 | from pathlib import Path |
10 | | -from shutil import move, rmtree |
| 10 | +from shutil import copytree, rmtree |
11 | 11 | from time import sleep |
12 | 12 | from timeit import default_timer as timer |
13 | 13 |
|
@@ -369,12 +369,11 @@ def launch_game( |
369 | 369 |
|
370 | 370 | # Resolve options with persistence |
371 | 371 | settings = read_settings(dest) |
372 | | - # TODO: condebug prevents an access violation crash to stdout or something, need to fix the Popen call eventually |
373 | 372 | if sys.platform.startswith("win"): |
374 | | - default_args = ["-steam", "-particles", "1", "-condebug"] |
| 373 | + default_args = ["-steam", "-particles", "1"] |
375 | 374 | default_cmds = ["+ip", "127.0.0.1"] |
376 | 375 | else: |
377 | | - default_args = ["-condebug"] |
| 376 | + default_args = [] |
378 | 377 | default_cmds = [] |
379 | 378 | if not extra_options: |
380 | 379 | extra_options = settings.get("opts") |
@@ -478,7 +477,8 @@ def change_install_folder(new_game_dir: Path): |
478 | 477 | old_game_dir = get_game_dir() |
479 | 478 | if old_game_dir.exists(): |
480 | 479 | 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) |
482 | 482 | except Exception as e: |
483 | 483 | print(f"ERROR: Failed to move game directory: {e}") |
484 | 484 | return |
|
0 commit comments