mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-30 23:19:49 +00:00
Make default palettes available for clean installs on MacOS (#1008)
* resolved issue where pixelorama_data folder is to registered on MacOS builds * Reverted changes to workflows and added Mac Resource directory to search path for palettes * format Global.gd with gdtoolkit
This commit is contained in:
parent
489344866b
commit
8e9ba696f1
|
@ -659,6 +659,10 @@ func _init() -> void:
|
|||
loaded_locales.sort() # Make sure locales are always sorted
|
||||
if OS.has_feature("template"):
|
||||
root_directory = OS.get_executable_path().get_base_dir()
|
||||
if OS.get_name() == "macOS":
|
||||
data_directories.append(
|
||||
root_directory.path_join("../Resources").path_join(CONFIG_SUBDIR_NAME)
|
||||
)
|
||||
data_directories.append(root_directory.path_join(CONFIG_SUBDIR_NAME))
|
||||
if OS.get_name() in ["Linux", "FreeBSD", "NetBSD", "OpenBSD", "BSD"]:
|
||||
# Checks the list of files var, and processes them.
|
||||
|
|
|
@ -381,7 +381,7 @@ func _get_palette_files(path: String) -> PackedStringArray:
|
|||
var dir := DirAccess.open(path)
|
||||
var results: PackedStringArray = []
|
||||
|
||||
if not is_instance_valid(dir) or not dir.dir_exists(path):
|
||||
if !dir:
|
||||
return []
|
||||
|
||||
dir.list_dir_begin()
|
||||
|
|
Loading…
Reference in a new issue