[cli] Disable SDL for Mac titles

This commit is contained in:
derrod 2021-12-08 00:22:44 +01:00
parent e0ad2171bf
commit 6106433153

View file

@ -787,6 +787,10 @@ class LegendaryCLI:
elif config_disable_sdl or args.disable_sdl:
sdl_enabled = False
# Disable SDL for non-Windows (for now, as no Mac SDL files are available right now)
if args.platform not in ('Win32', 'Windows'):
sdl_enabled = False
if sdl_enabled and ((sdl_name := get_sdl_appname(game.app_name)) is not None):
if not self.core.is_installed(game.app_name) or config_tags is None or args.reset_sdl:
sdl_data = self.core.get_sdl_data(sdl_name)