From 68c8a428261373b0fa9c306ef410499109e17a70 Mon Sep 17 00:00:00 2001 From: Yannik <80621863+vaporvee@users.noreply.github.com> Date: Fri, 30 Jun 2023 22:54:13 +0200 Subject: [PATCH] removed obsolete export plugin --- project/addons/discord-sdk-gd/export.gd | 17 ----------------- project/addons/discord-sdk-gd/plugin.gd | 5 ----- project/export_presets.cfg | 2 +- project/project.godot | 4 ---- 4 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 project/addons/discord-sdk-gd/export.gd diff --git a/project/addons/discord-sdk-gd/export.gd b/project/addons/discord-sdk-gd/export.gd deleted file mode 100644 index df2a354..0000000 --- a/project/addons/discord-sdk-gd/export.gd +++ /dev/null @@ -1,17 +0,0 @@ -@tool -extends EditorExportPlugin - -func _export_file(_path, _type, features) -> void: - if features.find("windows",0) != -1: - if features.find("x86_64",0) != -1: - add_shared_object("res://addons/discord-sdk-gd/bin/windows/discord_game_sdk.dll",[],"/") - elif features.find("x86",0) != -1: - add_shared_object("res://addons/discord-sdk-gd/bin/windows/discord_game_sdk_x86.dll",[],"/") - elif features.find("linux",0) != -1: - add_shared_object("res://addons/discord-sdk-gd/bin/linux/libdiscord_game_sdk.so",[],"/") - elif features.find("macos",0) != -1: - add_shared_object("res://addons/discord-sdk-gd/bin/macos/libdiscord_game_sdk.dylib",[],"/") - add_shared_object("res://addons/discord-sdk-gd/bin/macos/libdiscord_game_sdk_aarch64.dylib",[],"/") - -func _get_name(): - pass diff --git a/project/addons/discord-sdk-gd/plugin.gd b/project/addons/discord-sdk-gd/plugin.gd index 077797c..fb8b99e 100644 --- a/project/addons/discord-sdk-gd/plugin.gd +++ b/project/addons/discord-sdk-gd/plugin.gd @@ -6,14 +6,9 @@ const DiscordSDKDebug_icon = preload("res://addons/discord-sdk-gd/nodes/assets/D var loaded_DiscordSDKDebug = DiscordSDKDebug.new() -const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd") -var loaded_exportplugin = ExportPlugin.new() - - func _enter_tree() -> void: 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) func _enable_plugin() -> void: print("DiscordSDK Addon got enabled (PLEASE RESTART THE EDITOR)") diff --git a/project/export_presets.cfg b/project/export_presets.cfg index fde36f3..983ae28 100644 --- a/project/export_presets.cfg +++ b/project/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../../uizkgiuzfv/discord_sdk_demo.exe" +export_path="../../exportestt/discord_sdk_demo.exe" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false diff --git a/project/project.godot b/project/project.godot index 7ab55a7..e0c93bb 100644 --- a/project/project.godot +++ b/project/project.godot @@ -8,10 +8,6 @@ config_version=5 -[DiscordSDK] - -EditorPresence/enabled=false - [application] config/name="GDExtension DiscordSDK Test Project"