CANT GET THE PROGRAM TO REGISTER THAT WE'RE ON LINUX >:( nyaaaa

This commit is contained in:
sapient_cogbag 2020-04-11 07:58:58 +01:00
parent 1593c5c12b
commit b2eafc5464
No known key found for this signature in database
GPG key ID: 9DA0A435732D7C4A
4 changed files with 146 additions and 39 deletions

View file

@ -7,7 +7,8 @@ enum Brush_Types {PIXEL, CIRCLE, FILLED_CIRCLE, FILE, RANDOM_FILE, CUSTOM}
var root_directory := "."
var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()?
var config_cache := ConfigFile.new()
var directory_module := preload("res://Scripts/XDGDataPaths.gd")
var XDGDataPaths = preload("res://Scripts/XDGDataPaths.gd")
var directory_module : Node
# warning-ignore:unused_class_variable
var loaded_locales : Array
@ -264,6 +265,10 @@ func _ready() -> void:
root_directory = OS.get_executable_path().get_base_dir()
# Load settings from the config file
config_cache.load("user://cache.ini")
# The fact that root_dir is set earlier than this is important
# XDGDataDirs depends on it nyaa
directory_module = XDGDataPaths.new()
undo_redo = UndoRedo.new()
transparent_background = ImageTexture.new()