From 70af132da121117e27cd5d98488e42dd04746133 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sun, 3 Dec 2023 17:00:29 +0200 Subject: [PATCH] EOSGroup: Check for 'user.reg' file to validate prefix path --- rare/components/tabs/games/integrations/eos_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rare/components/tabs/games/integrations/eos_group.py b/rare/components/tabs/games/integrations/eos_group.py index 61f987ca6..784d4ae49 100644 --- a/rare/components/tabs/games/integrations/eos_group.py +++ b/rare/components/tabs/games/integrations/eos_group.py @@ -143,7 +143,7 @@ def update_select_combo(self, i: None): if i is None: i = self.select_pfx_combo.currentIndex() prefix = os.path.expanduser(self.select_pfx_combo.itemText(i)) - if platform.system() != "Windows" and not os.path.exists(prefix): + if platform.system() != "Windows" and not os.path.isfile(os.path.join(prefix, "user.reg")): return self.current_prefix = prefix reg_paths = eos.query_registry_entries(self.current_prefix)