Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion addons/mod_loader/internal/third_party/steam.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down