Skip to content

Commit

Permalink
Fix issue where the override.cfg file would be created at the wrong l…
Browse files Browse the repository at this point in the history
…ocation, if Pixelorama is launched through a shortcut
  • Loading branch information
OverloadedOrama committed Apr 5, 2024
1 parent b0d4b30 commit 0c6566d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Autoload/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func _renderer_changed(value: int) -> void:
ProjectSettings.set_initial_value("rendering/quality/driver/driver_name", "GLES2")
var renderer_name := OS.get_video_driver_name(renderer)
ProjectSettings.set_setting("rendering/quality/driver/driver_name", renderer_name)
ProjectSettings.save_custom(OVERRIDE_FILE)
ProjectSettings.save_custom(root_directory.plus_file(OVERRIDE_FILE))


func _tablet_driver_changed(value: int) -> void:
Expand All @@ -548,7 +548,7 @@ func _tablet_driver_changed(value: int) -> void:
return
var tablet_driver_name := OS.get_tablet_driver_name(tablet_driver)
ProjectSettings.set_setting("display/window/tablet_driver", tablet_driver_name)
ProjectSettings.save_custom(OVERRIDE_FILE)
ProjectSettings.save_custom(root_directory.plus_file(OVERRIDE_FILE))


func dialog_open(open: bool) -> void:
Expand Down

0 comments on commit 0c6566d

Please sign in to comment.