Skip to content

Commit

Permalink
Fix Missing Path
Browse files Browse the repository at this point in the history
  • Loading branch information
Firebladedoge229 authored Jul 23, 2024
1 parent 3c594d2 commit 7506ee6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions robloxstudiomanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7506ee6

Please sign in to comment.