This commit is contained in:
2026-04-03 16:24:05 -04:00
parent 413426d597
commit 655f295916
4 changed files with 21 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import os
import tomllib
import psutil
import win32api
import tomli_w
CONFIG_PATH = os.path.join(os.environ["APPDATA"], "FP26CKOSDGLBIFUMD", "library.toml")
PAUSE_FILE = os.path.join(os.environ["APPDATA"], "FP26CKOSDGLBIFUMD", "pause")
@@ -28,6 +28,11 @@ def stop_game(game_process):
proc.terminate()
if not os.path.exists(CONFIG_PATH):
os.makedirs(os.path.dirname(CONFIG_PATH), exist_ok=True)
with open(CONFIG_PATH, "wb") as f:
tomli_w.dump({"disks": {}}, f)
while True:
if os.path.exists("A:\\"):
disk_in = True