Skip to content

Commit

Permalink
Fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
mkh-user committed Feb 8, 2025
1 parent 0028259 commit d9e4171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/SLib/SLib.gd
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func load_file(location: String, type: Variant.Type = TYPE_NIL, default_value: V
## [br][br]
## [b]Note:[/b] If the file doesn't exist, it will send an error to the console.[br]
## [b]See also:[/b] [method save_file] and [method load_file].
func backup_file(location: String, type: Variant.Type, suffix: String = _defaults["BackupSuffix"], config: String = "") -> Error:
func backup_file(location: String, type: Variant.Type = TYPE_NIL, suffix: String = _defaults["BackupSuffix"], config: String = "") -> Error:
var load = SLib.load_file(location, type, null, config)
return SLib.save_file("{location}-{suffix}.{extension}".format({"location": location.get_basename(), "suffix": suffix, "extension": location.get_extension()}), load, config)
#endregion
Expand Down

0 comments on commit d9e4171

Please sign in to comment.