1
0
Fork 0
mirror of synced 2024-06-03 03:04:42 +12:00

RareLauncher: Allow running launchable addons

This commit is contained in:
loathingKernel 2024-05-19 15:15:13 +03:00
parent 6dd5d2f546
commit 2396f0fb83

View file

@ -11,7 +11,7 @@ from legendary.models.game import LaunchParameters
from rare.models.base_game import RareGameSlim
logger = getLogger("Helper")
logger = getLogger("RareLauncherHelper")
class GameArgsError(Exception):
@ -156,7 +156,7 @@ def get_launch_args(rgame: RareGameSlim, init_args: InitArgs = None) -> LaunchAr
if not rgame.is_installed:
raise GameArgsError("Game is not installed or has unsupported format")
if rgame.is_dlc:
if rgame.is_dlc and not rgame.is_launchable_addon:
raise GameArgsError("Game is a DLC")
if not os.path.exists(rgame.install_path):
raise GameArgsError("Game path does not exist")