From edc5499c86b70b49dda18c09f9a7aadf4603470c Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Sat, 19 Nov 2022 08:28:25 +0800 Subject: [PATCH] added condition for running on MacOS --- godot/Results.gd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/godot/Results.gd b/godot/Results.gd index 54e7665..7511921 100644 --- a/godot/Results.gd +++ b/godot/Results.gd @@ -78,7 +78,16 @@ func _on_SaveReport_pressed(): var folder = OS.get_user_data_dir() - var _openfolder = OS.shell_open(folder) + if OS.get_name() != "OSX": + print("We're not on MacOS") + var _openfolder = OS.shell_open(folder) + + if OS.get_name() == "OSX": + print("We're on MacOS") + + var folder2 = "../../" + folder + + var _openfolder = OS.shell_open(folder2) $"%SaveReport".visible = true $"%BackMainMenu".visible = true