From 1740c1151327e21b6706a1a4e24254ece05579d4 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 12 May 2020 04:01:04 +0300 Subject: [PATCH] Made XDGDataPaths extend Reference This could clear the "ObjectDB Instances still exist!" and "Resources Still in use at Exit!" errors when you exit Pixelorama. --- src/Autoload/Global.gd | 2 +- src/XDGDataPaths.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 4038c55..74882a6 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -8,7 +8,7 @@ var root_directory := "." var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()? var config_cache := ConfigFile.new() var XDGDataPaths = preload("res://src/XDGDataPaths.gd") -var directory_module : Node +var directory_module : Reference # Stuff for arrowkey-based canvas movements nyaa ^.^ const low_speed_move_rate := 150.0 diff --git a/src/XDGDataPaths.gd b/src/XDGDataPaths.gd index 6dcbb0e..3642e39 100644 --- a/src/XDGDataPaths.gd +++ b/src/XDGDataPaths.gd @@ -1,4 +1,4 @@ -extends Node +extends Reference # These are *with* the config subdirectory name var xdg_data_home : String