From db588ed4e2af89d2ff1679f3e62dcc72c34cf2d6 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sat, 16 Dec 2023 00:40:15 +0200 Subject: [PATCH] Use legendary's installation directory inference --- rare/components/tabs/games/integrations/eos_group.py | 4 +--- rare/components/tabs/games/integrations/import_group.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rare/components/tabs/games/integrations/eos_group.py b/rare/components/tabs/games/integrations/eos_group.py index 784d4ae4..174f34aa 100644 --- a/rare/components/tabs/games/integrations/eos_group.py +++ b/rare/components/tabs/games/integrations/eos_group.py @@ -213,9 +213,7 @@ class EOSGroup(QGroupBox, Ui_EosWidget): self.enabled_cb.setChecked(enabled) def install_overlay(self, update=False): - base_path = os.path.join( - self.core.lgd.config.get("Legendary", "install_dir", fallback=os.path.expanduser("~/legendary")),".overlay" - ) + base_path = os.path.join(self.core.get_default_install_dir(), ".overlay") if update: if not self.overlay: self.overlay_stack.setCurrentIndex(1) diff --git a/rare/components/tabs/games/integrations/import_group.py b/rare/components/tabs/games/integrations/import_group.py index 89dfa929..c9034ab4 100644 --- a/rare/components/tabs/games/integrations/import_group.py +++ b/rare/components/tabs/games/integrations/import_group.py @@ -198,7 +198,7 @@ class ImportGroup(QGroupBox): self.__install_dirs: Set[str] = set() self.path_edit = PathEdit( - self.core.get_default_install_dir(), + self.core.get_default_install_dir(self.core.default_platform), QFileDialog.DirectoryOnly, edit_func=self.path_edit_callback, parent=self,