Skip to content

Commit

Permalink
Remove OS.get_unique_id() (Fixes #82 )
Browse files Browse the repository at this point in the history
And add a check to fix a connection error
  • Loading branch information
ObaniGemini committed Sep 21, 2016
1 parent 3e338fe commit 9f3bfe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/gui.gd
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func prompt_finsh_level(turns = 1, has_more_levels = true, wait = 0): # Called w

func show_popup(title, text, wait): # Show a popup with title and text, after some time
popup_running = true
timer.disconnect("timeout", self, "_show_popup")
if timer.is_connected("timeout", self, "_show_popup"):
timer.disconnect("timeout", self, "_show_popup")
if wait > 0:
timer.set_wait_time(wait)
timer.connect("timeout", self, "_show_popup", [
Expand Down
2 changes: 1 addition & 1 deletion shared/save_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const DATA_DELIMITER = " "
var save_path = "user://savedata.bin"

func _ready():
FileManager.set_file_password(save_path, str("minilens", OS.get_unique_ID())) # Set the password
FileManager.set_file_password(save_path, "minilens") # Set the password

func get_reached_level(pack):
var save_lines = FileManager.get_file_lines(save_path) # Read the file
Expand Down

0 comments on commit 9f3bfe4

Please sign in to comment.