From 1af1f4e6f6b8d7bfbccc4176dba07f9b9474ccf8 Mon Sep 17 00:00:00 2001 From: blinry Date: Fri, 5 Feb 2021 16:21:48 +0100 Subject: [PATCH] Make the "save delete" function observe the new name --- project.godot | 1 + scenes/helpers.gd | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/project.godot b/project.godot index 84a6bd6..daa35db 100644 --- a/project.godot +++ b/project.godot @@ -53,6 +53,7 @@ _global_script_class_icons={ config/name="Oh My Git!" run/main_scene="res://scenes/title.tscn" config/use_custom_user_dir=true +config/custom_user_dir_name="Oh My Git" boot_splash/bg_color=Color( 0, 0, 0, 1 ) [autoload] diff --git a/scenes/helpers.gd b/scenes/helpers.gd index 8a67d79..ff130f1 100644 --- a/scenes/helpers.gd +++ b/scenes/helpers.gd @@ -88,11 +88,11 @@ func careful_delete(path_inside): var os = OS.get_name() if os == "X11": - expected_prefix = "/home/%s/.local/share/Git Guru/tmp/" % OS.get_environment("USER") + expected_prefix = "/home/%s/.local/share/Oh My Git/tmp/" % OS.get_environment("USER") elif os == "OSX": - expected_prefix = "/Users/%s/Library/Application Support/Git Guru/tmp/" % OS.get_environment("USER") + expected_prefix = "/Users/%s/Library/Application Support/Oh My Git/tmp/" % OS.get_environment("USER") elif os == "Windows": - expected_prefix = "C:/Users/%s/AppData/Roaming/Git Guru/tmp/" % OS.get_environment("USERNAME") + expected_prefix = "C:/Users/%s/AppData/Roaming/Oh My Git/tmp/" % OS.get_environment("USERNAME") else: helpers.crash("Unsupported OS: %s" % os)