From 9929ccbb3ac494645a210fa8cd0db4d2cffa860e Mon Sep 17 00:00:00 2001 From: Yannik <80621863+vaporvee@users.noreply.github.com> Date: Wed, 17 May 2023 00:58:38 +0200 Subject: [PATCH] fixed some 2.0 bugs --- .../bin/windows/discord_game_sdk_binding.dll | Bin 209408 -> 209408 bytes .../discord_game_sdk_binding_debug.dll | Bin 212480 -> 212480 bytes project/addons/discord-sdk-gd/plugin.gd | 10 +++++----- project/project.godot | 4 ++++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll index 08d6d838b038585210bfa696bff8cfaecd3bdb1a..8e527b3bf641dde829865631506ec083254cac7f 100644 GIT binary patch delta 35 pcmZp8!qf1CX8|MgAC8n}X2y1AM#k;Tj7*6$Kmyy-XEM#40RY(?3=04N delta 35 pcmZp8!qf1CX8|Mgs+-Bp%#7{KjEviv8JQAifCRRu&t#f80|4l_4F>=K diff --git a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll index 1336bcb84f7a51598d8c696f9894fdff8d782287..8c19fc1adcf3272f6c27e5ce36c284f36fadc04b 100644 GIT binary patch delta 35 pcmZqp!_)AGX8|MgH;$BMX2y1AM#k;Tj7*73Kmyy-mom+q0RZ0?3`YO} delta 35 pcmZqp!_)AGX8|MglAFoR%#7{KjEviv8JQB7fCRRuFJ+oJ0|4%_4MP9` diff --git a/project/addons/discord-sdk-gd/plugin.gd b/project/addons/discord-sdk-gd/plugin.gd index 1bea3ee..b0ad0af 100644 --- a/project/addons/discord-sdk-gd/plugin.gd +++ b/project/addons/discord-sdk-gd/plugin.gd @@ -14,18 +14,18 @@ const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd") var loaded_exportplugin = ExportPlugin.new() -func _enable_plugin() -> void: - print("DiscordSDK Addon got enabled") +func _enter_tree() -> void: add_custom_type("DiscordSDKLoader","Node",DiscordSDKLoader,DiscordSDKLoader_icon) add_custom_type("DiscordSDKDebug","Node",DiscordSDKDebug,DiscordSDKDebug_icon) add_autoload_singleton("DiscordSDKLoader", "res://addons/discord-sdk-gd/nodes/core_updater.gd") add_export_plugin(loaded_exportplugin) - - ProjectSettings.set_setting("DiscordSDK/EditorPresence/enabled",false) +func _enable_plugin(): + print("DiscordSDK Addon got enabled") + ProjectSettings.set_setting("DiscordSDK/EditorPresence/enabled",false) ProjectSettings.set_initial_value("DiscordSDK/EditorPresence/enabled",false) ProjectSettings.set_restart_if_changed("DiscordSDK/EditorPresence/enabled",true) - + func _disable_plugin() -> void: print("DiscordSDK Addon got disabled") remove_autoload_singleton("DiscordSDKLoader") diff --git a/project/project.godot b/project/project.godot index e0c93bb..469b60e 100644 --- a/project/project.godot +++ b/project/project.godot @@ -8,6 +8,10 @@ config_version=5 +[DiscordSDK] + +EditorPresence/enabled=true + [application] config/name="GDExtension DiscordSDK Test Project"