Skip to content

Commit 17683f8

Browse files
Rename the Other folder to Core (dialogic-godot#2047)
* Rename the Other folder to Core * Add a small auto-update * Fix unit test
1 parent ce2a734 commit 17683f8

File tree

7 files changed

+8
-3
lines changed

7 files changed

+8
-3
lines changed

Diff for: .github/workflows/resources/project.godot

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ renderer/rendering_method.mobile="gl_compatibility"
2121

2222
[autoload]
2323

24-
Dialogic="*res://addons/dialogic/Other/DialogicGameHandler.gd"
24+
Dialogic="*res://addons/dialogic/Core/DialogicGameHandler.gd"

Diff for: addons/dialogic/Other/DialogicUtil.gd renamed to addons/dialogic/Core/DialogicUtil.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static func get_module_path(name:String, builtin:=true) -> String:
6666

6767

6868
static func update_autoload_subsystem_access() -> void:
69-
var script: Script = load("res://addons/dialogic/Other/DialogicGameHandler.gd")
69+
var script: Script = load("res://addons/dialogic/Core/DialogicGameHandler.gd")
7070

7171
var new_subsystem_access_list := "#region SUBSYSTEMS\n"
7272

File renamed without changes.

Diff for: addons/dialogic/plugin.gd

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extends EditorPlugin
44
## Preload the main panel scene
55
const MainPanel := preload("res://addons/dialogic/Editor/editor_main.tscn")
66
const PLUGIN_NAME := "Dialogic"
7-
const PLUGIN_HANDLER_PATH := "res://addons/dialogic/Other/DialogicGameHandler.gd"
7+
const PLUGIN_HANDLER_PATH := "res://addons/dialogic/Core/DialogicGameHandler.gd"
88
const PLUGIN_ICON_PATH := "res://addons/dialogic/Editor/Images/plugin-icon.svg"
99

1010
## References used by various other scripts to quickly reference these things
@@ -40,6 +40,11 @@ func _enter_tree() -> void:
4040
get_editor_interface().get_editor_main_screen().add_child(editor_view)
4141
_make_visible(false)
4242

43+
# Auto-update the singleton path for alpha users
44+
# TODO remove at some point during beta or later
45+
remove_autoload_singleton(PLUGIN_NAME)
46+
add_autoload_singleton(PLUGIN_NAME, PLUGIN_HANDLER_PATH)
47+
4348

4449
func _exit_tree() -> void:
4550
if editor_view:

0 commit comments

Comments
 (0)