From b93435d920ebb03868e422dd99a8eb178a61daba Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sat, 16 Dec 2023 16:23:58 +0200 Subject: [PATCH] Lgndr: Disable legendary's update checks and ignore config file options --- rare/lgndr/core.py | 6 ++++++ rare/shared/rare_core.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rare/lgndr/core.py b/rare/lgndr/core.py index c5954af3..15ac8f53 100644 --- a/rare/lgndr/core.py +++ b/rare/lgndr/core.py @@ -58,6 +58,12 @@ class LegendaryCore(LegendaryCoreReal): usr_platform = self.lgd.config.get("Legendary", "default_platform", fallback=os_default) return usr_platform if usr_platform in ("Windows", "Win32", "Mac") else os_default + def update_check_enabled(self): + return False + + def update_notice_enabled(self): + return False + # skip_sync defaults to false but since Rare is persistent, skip by default # def get_installed_game(self, app_name, skip_sync=True) -> InstalledGame: # return super(LegendaryCore, self).get_installed_game(app_name, skip_sync) diff --git a/rare/shared/rare_core.py b/rare/shared/rare_core.py index 6bea7472..f2a5d9c5 100644 --- a/rare/shared/rare_core.py +++ b/rare/shared/rare_core.py @@ -166,7 +166,8 @@ class RareCore(QObject): self.__core.lgd.config.set( "Legendary", "mac_install_dir", self.__core.get_default_install_dir(self.__core.default_platform) ) - # Always set this to avoid falling back + # Always set these options + # Avoid falling back to Windows games on macOS self.__core.lgd.config.set("Legendary", "install_platform_fallback", 'false') # workaround if egl sync enabled, but no programdata_path