Possible to setup custom saved game and installation directory.

This commit is contained in:
Khopa
2020-06-05 14:21:42 +02:00
parent ce70242c35
commit b219b2a71b
13 changed files with 402 additions and 176 deletions

View File

@@ -2,9 +2,6 @@ import logging
import os
import pickle
import shutil
import sys
from dcs import installation
_dcs_saved_game_folder = None # type: str
@@ -17,12 +14,7 @@ def setup(user_folder: str):
def base_path() -> str:
global _dcs_saved_game_folder
assert _dcs_saved_game_folder
openbeta_path = _dcs_saved_game_folder + ".openbeta"
if os.path.exists(openbeta_path):
return openbeta_path # For standalone openbeta users
else:
return _dcs_saved_game_folder # For standalone stable users & steam users (any branch)
return _dcs_saved_game_folder
def _save_file() -> str: