Skip to content

Commit

Permalink
Rename the Other folder to Core (#2047)
Browse files Browse the repository at this point in the history
* Rename the Other folder to Core

* Add a small auto-update

* Fix unit test
  • Loading branch information
Jowan-Spooner authored Jan 26, 2024
1 parent ce2a734 commit 17683f8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/resources/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ renderer/rendering_method.mobile="gl_compatibility"

[autoload]

Dialogic="*res://addons/dialogic/Other/DialogicGameHandler.gd"
Dialogic="*res://addons/dialogic/Core/DialogicGameHandler.gd"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static func get_module_path(name:String, builtin:=true) -> String:


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

var new_subsystem_access_list := "#region SUBSYSTEMS\n"

Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion addons/dialogic/plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends EditorPlugin
## Preload the main panel scene
const MainPanel := preload("res://addons/dialogic/Editor/editor_main.tscn")
const PLUGIN_NAME := "Dialogic"
const PLUGIN_HANDLER_PATH := "res://addons/dialogic/Other/DialogicGameHandler.gd"
const PLUGIN_HANDLER_PATH := "res://addons/dialogic/Core/DialogicGameHandler.gd"
const PLUGIN_ICON_PATH := "res://addons/dialogic/Editor/Images/plugin-icon.svg"

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

# Auto-update the singleton path for alpha users
# TODO remove at some point during beta or later
remove_autoload_singleton(PLUGIN_NAME)
add_autoload_singleton(PLUGIN_NAME, PLUGIN_HANDLER_PATH)


func _exit_tree() -> void:
if editor_view:
Expand Down

0 comments on commit 17683f8

Please sign in to comment.