1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fix override.cfg being created in the wrong location if Pixelorama is launched through a launcher or a shortcut

This commit is contained in:
Emmanouil Papadeas 2024-01-29 16:35:23 +02:00
parent a7cf93d1e5
commit 6345c52b5f

View file

@ -174,7 +174,7 @@ var single_window_mode := true:
if OS.has_feature("editor"): if OS.has_feature("editor"):
return return
ProjectSettings.set_setting("display/window/subwindows/embed_subwindows", value) ProjectSettings.set_setting("display/window/subwindows/embed_subwindows", value)
ProjectSettings.save_custom(OVERRIDE_FILE) ProjectSettings.save_custom(root_directory.path_join(OVERRIDE_FILE))
## Found in Preferences. The modulation color (or simply color) of icons. ## Found in Preferences. The modulation color (or simply color) of icons.
var modulate_icon_color := Color.GRAY var modulate_icon_color := Color.GRAY
## Found in Preferences. Determines if [member modulate_icon_color] uses custom or theme color. ## Found in Preferences. Determines if [member modulate_icon_color] uses custom or theme color.
@ -379,7 +379,7 @@ var tablet_driver := 0:
return return
var tablet_driver_name := DisplayServer.tablet_get_current_driver() var tablet_driver_name := DisplayServer.tablet_get_current_driver()
ProjectSettings.set_setting("display/window/tablet_driver", tablet_driver_name) ProjectSettings.set_setting("display/window/tablet_driver", tablet_driver_name)
ProjectSettings.save_custom(OVERRIDE_FILE) ProjectSettings.save_custom(root_directory.path_join(OVERRIDE_FILE))
# Tools & options # Tools & options
## Found in Preferences. If [code]true[/code], the cursor's left tool icon is visible. ## Found in Preferences. If [code]true[/code], the cursor's left tool icon is visible.
@ -816,7 +816,7 @@ func _renderer_changed(value: int) -> void:
# ProjectSettings.set_initial_value("rendering/quality/driver/driver_name", "GLES2") # ProjectSettings.set_initial_value("rendering/quality/driver/driver_name", "GLES2")
# var renderer_name := OS.get_video_driver_name(renderer) # var renderer_name := OS.get_video_driver_name(renderer)
# ProjectSettings.set_setting("rendering/quality/driver/driver_name", renderer_name) # ProjectSettings.set_setting("rendering/quality/driver/driver_name", renderer_name)
# ProjectSettings.save_custom(OVERRIDE_FILE) # ProjectSettings.save_custom(root_directory.path_join(OVERRIDE_FILE))
## Use this to prepare Pixelorama before opening a dialog. ## Use this to prepare Pixelorama before opening a dialog.