From 7506ee6ccb44fc8dac55952f3847923a514a2b2b Mon Sep 17 00:00:00 2001 From: Fireblade <72758695+Firebladedoge229@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:42:04 -0400 Subject: [PATCH] Fix Missing Path --- robloxstudiomanager.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/robloxstudiomanager.py b/robloxstudiomanager.py index a9b3843..fdba628 100644 --- a/robloxstudiomanager.py +++ b/robloxstudiomanager.py @@ -56,6 +56,23 @@ max_files_count = num_files selected_version = version_dir +if not selected_version: + versions_dir = os.path.join(os.environ["PROGRAMFILES(X86)"], "Roblox", "Versions") + + max_files_count = 0 + + for version in os.listdir(versions_dir): + version_dir = os.path.join(versions_dir, version) + + exe_path = os.path.join(version_dir, "RobloxStudioBeta.exe") + if os.path.exists(exe_path): + + num_files = len([name for name in os.listdir(version_dir)]) + + if num_files > max_files_count: + max_files_count = num_files + selected_version = version_dir + def is_modded(): if os.path.exists(os.path.join(selected_version, "ClientSettings")): return "Yes"