This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d1ac3d
commit 42f12cb
Showing
23 changed files
with
671 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,2 @@ | ||
@tool | ||
extends EditorPlugin | ||
|
||
var editor_addon: EditorPlugin | ||
|
||
|
||
func _enter_tree(): | ||
if !ProjectSettings.has_setting("autoload/RuntimeManager"): | ||
add_autoload_singleton("RuntimeManager", "res://addons/FMOD/runtime/runtime_manager.gd") | ||
|
||
# note(alex): _enter_tree is called twice here (bug?) so we check if we are already initialized | ||
if !FMODStudioEditorModule.get_is_initialized(): | ||
editor_addon = load("res://addons/FMOD/editor/editor_addon.gd").new() | ||
get_editor_interface().get_base_control().add_child(editor_addon) | ||
|
||
FMODStudioEditorModule.set_is_initialized(true) | ||
|
||
|
||
func _exit_tree(): | ||
if FMODStudioEditorModule.get_is_initialized(): | ||
get_editor_interface().get_base_control().remove_child(editor_addon) | ||
editor_addon.queue_free() | ||
remove_autoload_singleton("RuntimeManager") | ||
extends EditorPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.