added shared instance support
This commit is contained in:
parent
cdaae6963c
commit
fae8b27cf4
3 changed files with 225 additions and 7 deletions
|
|
@ -34,11 +34,11 @@ DEFAULT_ARENA0_BL = r"./arena/music/arena0_bl.txt"
|
|||
DEFAULT_GAME_EXE = ""
|
||||
|
||||
# Debug override paths
|
||||
DEBUG_WIN_GAME_EXE = r"D:/GOG Games/Quake III/qgame.dll"
|
||||
DEBUG_LIN_GAME_EXE = r"D:/GOG Games/Quake III/qgame.so"
|
||||
DEBUG_PLAYLIST = r"D:/GOG Games/Quake III/arena/music/playlist.txt"
|
||||
DEBUG_RA3_MAPS = r"D:/GOG Games/Quake III/arena/music/ra3_maps.txt"
|
||||
DEBUG_ARENA0_BL = r"D:/GOG Games/Quake III/arena/music/arena0_bl.txt"
|
||||
DEBUG_WIN_GAME_EXE = r"//gameframe-omv/games/quake3arena/qgame.dll"
|
||||
DEBUG_LIN_GAME_EXE = r"//gameframe-omv/games/quake3arena/qgame.so"
|
||||
DEBUG_PLAYLIST = r"//gameframe-omv/games/quake3arena/arena/music/playlist.txt"
|
||||
DEBUG_RA3_MAPS = r"//gameframe-omv/games/quake3arena/arena/music/ra3_maps.txt"
|
||||
DEBUG_ARENA0_BL = r"//gameframe-omv/games/quake3arena/arena/music/arena0_bl.txt"
|
||||
DEBUG_GAME_EXE = ""
|
||||
|
||||
if (os.name == "nt"):
|
||||
|
|
@ -713,8 +713,10 @@ def main():
|
|||
chosen_mod = None
|
||||
run_mod = []
|
||||
|
||||
game_path = Path(game_exe)
|
||||
|
||||
if "fs_game" not in sys.argv[1:]:
|
||||
game_path = Path(game_exe)
|
||||
|
||||
items = find_pk3_subfolders(game_path.parent)
|
||||
|
||||
# Create a queue to get the result from the menu thread
|
||||
|
|
@ -757,7 +759,13 @@ def main():
|
|||
|
||||
#sys.exit(0)
|
||||
|
||||
game_args = run_mod + sys.argv[1:]
|
||||
#
|
||||
|
||||
if (Path(game_exe).parent / "shared_instance.txt").exists():
|
||||
game_args = run_mod + ["+set","fs_homepath", os.environ['APPDATA']+"\\quake3e\\"] + sys.argv[1:]
|
||||
else:
|
||||
game_args = run_mod + sys.argv[1:]
|
||||
|
||||
|
||||
# Start game launcher thread
|
||||
#game_launch_thread = threading.Thread(target=game_launch,args=(game_args,))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue