From e78b41de4e24494bb37cadeafd6e4de5b92fa9b2 Mon Sep 17 00:00:00 2001 From: kilian-diener Date: Thu, 28 Aug 2025 11:38:04 +0200 Subject: [PATCH] Mac requires 1 more escaped folder to find the workshop contents --- addons/mod_loader/internal/third_party/steam.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/mod_loader/internal/third_party/steam.gd b/addons/mod_loader/internal/third_party/steam.gd index e4371896..32481169 100644 --- a/addons/mod_loader/internal/third_party/steam.gd +++ b/addons/mod_loader/internal/third_party/steam.gd @@ -67,7 +67,10 @@ static func _get_path_to_workshop() -> String: # Traverse up to the steamapps directory (ie. `cd ..\..\` on Windows) var path_array := game_install_directory.split("/") - path_array.resize(path_array.size() - 3) + var folders_to_escape := 3 + if OS.get_name() == "OSX": + folders_to_escape = 4 # on Mac additional escape from GameName.app is needed + path_array.resize(path_array.size() - folders_to_escape) # Reconstruct the path, now that it has "common/GameName" removed path = "/".join(path_array)