mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:44:42 -04:00
Fixed issue where Brushes and Palettes wouldn't load if you opened Pixelorama from a file
It now uses "OS.get_executable_path().get_base_dir()" to find the root directory of Pixelorama, instead of just "."
This commit is contained in:
parent
9e7a3059f2
commit
a6d129526c
6 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var root_directory := "."
|
||||
var config_cache := ConfigFile.new()
|
||||
# warning-ignore:unused_class_variable
|
||||
var loaded_locales : Array
|
||||
|
@ -243,6 +244,8 @@ var error_dialog : AcceptDialog
|
|||
|
||||
func _ready() -> void:
|
||||
randomize()
|
||||
if OS.has_feature("standalone"):
|
||||
root_directory = OS.get_executable_path().get_base_dir()
|
||||
# Load settings from the config file
|
||||
config_cache.load("user://cache.ini")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue