Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
35c1895650 | ||
|
548349d9f8 | ||
|
68c8a42826 | ||
|
3e944683a4 | ||
|
6f288564cf | ||
|
aa39fb80e0 |
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
@@ -23,6 +23,7 @@ body:
|
|||||||
label: Version
|
label: Version
|
||||||
description: What version of our software are you running?
|
description: What version of our software are you running?
|
||||||
options:
|
options:
|
||||||
|
- 2.3
|
||||||
- 2.2
|
- 2.2
|
||||||
- 2.1
|
- 2.1
|
||||||
- 2.0
|
- 2.0
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
<img src="/project/assets/Banner.svg" alt="Project Banner" />
|
<img src="/project/assets/Banner.svg" alt="Project Banner" />
|
||||||
|
|
||||||
**Discord Game SDK support for GDScript in Godot Engine 4.0. with the easiest code pattern!**<br><br>
|
**Discord Game SDK support for GDScript in Godot Engine 4.0. with the easiest code pattern!**<br><br>
|
||||||
**Please leave a star that would really help! And thanks to all the people that already starred this project! ❤️**
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
# [Quick start :rocket: (click here)](https://github.com/vaporvee/discord-sdk-godot/wiki)
|
# [Quick start :rocket: (click here)](https://github.com/vaporvee/discord-sdk-godot/wiki)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -17,13 +17,13 @@ linux.release.rv64 = "bin/linux/libdiscord_game_sdk_binding.so"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
macos.debug = "bin/macos/libdiscord_game_sdk.dylib"
|
macos.debug = { "bin/macos/libdiscord_game_sdk.dylib": "" }
|
||||||
macos.release = "bin/macos/libdiscord_game_sdk.dylib"
|
macos.release = { "bin/macos/libdiscord_game_sdk.dylib": "" }
|
||||||
windows.debug.x86_64 = "bin/windows/discord_game_sdk.dll"
|
windows.debug.x86_64 = { "bin/windows/discord_game_sdk.dll": "" }
|
||||||
windows.release.x86_64 = "bin/windows/discord_game_sdk.dll"
|
windows.release.x86_64 = { "bin/windows/discord_game_sdk.dll": "" }
|
||||||
linux.debug.x86_64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.debug.x86_64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
linux.release.x86_64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.release.x86_64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
linux.debug.arm64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.debug.arm64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
linux.release.arm64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.release.arm64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
linux.debug.rv64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.debug.rv64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
linux.release.rv64 = "bin/linux/libdiscord_game_sdk.so"
|
linux.release.rv64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||||
|
@@ -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
|
|
@@ -3,5 +3,5 @@
|
|||||||
name="DiscordSDK"
|
name="DiscordSDK"
|
||||||
description="Discord Game SDK support for GDScript in Godot"
|
description="Discord Game SDK support for GDScript in Godot"
|
||||||
author="vaporvee"
|
author="vaporvee"
|
||||||
version="2.2"
|
version="2.3"
|
||||||
script="plugin.gd"
|
script="plugin.gd"
|
||||||
|
@@ -6,14 +6,9 @@ const DiscordSDKDebug_icon = preload("res://addons/discord-sdk-gd/nodes/assets/D
|
|||||||
var loaded_DiscordSDKDebug = DiscordSDKDebug.new()
|
var loaded_DiscordSDKDebug = DiscordSDKDebug.new()
|
||||||
|
|
||||||
|
|
||||||
const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
|
|
||||||
var loaded_exportplugin = ExportPlugin.new()
|
|
||||||
|
|
||||||
|
|
||||||
func _enter_tree() -> void:
|
func _enter_tree() -> void:
|
||||||
add_custom_type("DiscordSDKDebug","Node",DiscordSDKDebug,DiscordSDKDebug_icon)
|
add_custom_type("DiscordSDKDebug","Node",DiscordSDKDebug,DiscordSDKDebug_icon)
|
||||||
add_autoload_singleton("DiscordSDKLoader", "res://addons/discord-sdk-gd/nodes/core_updater.gd")
|
add_autoload_singleton("DiscordSDKLoader", "res://addons/discord-sdk-gd/nodes/core_updater.gd")
|
||||||
add_export_plugin(loaded_exportplugin)
|
|
||||||
|
|
||||||
func _enable_plugin() -> void:
|
func _enable_plugin() -> void:
|
||||||
print("DiscordSDK Addon got enabled (PLEASE RESTART THE EDITOR)")
|
print("DiscordSDK Addon got enabled (PLEASE RESTART THE EDITOR)")
|
||||||
|
@@ -8,7 +8,7 @@ custom_features=""
|
|||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="../../uizkgiuzfv/discord_sdk_demo.exe"
|
export_path="../../exportestt/discord_sdk_demo.exe"
|
||||||
encryption_include_filters=""
|
encryption_include_filters=""
|
||||||
encryption_exclude_filters=""
|
encryption_exclude_filters=""
|
||||||
encrypt_pck=false
|
encrypt_pck=false
|
||||||
|
@@ -8,10 +8,6 @@
|
|||||||
|
|
||||||
config_version=5
|
config_version=5
|
||||||
|
|
||||||
[DiscordSDK]
|
|
||||||
|
|
||||||
EditorPresence/enabled=false
|
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="GDExtension DiscordSDK Test Project"
|
config/name="GDExtension DiscordSDK Test Project"
|
||||||
|
6
setup.py
6
setup.py
@@ -6,6 +6,12 @@ import os
|
|||||||
with zipfile.ZipFile("src/lib/discord_game_sdk.zip", "r") as zip_ref:
|
with zipfile.ZipFile("src/lib/discord_game_sdk.zip", "r") as zip_ref:
|
||||||
zip_ref.extractall("src/lib/discord_game_sdk/")
|
zip_ref.extractall("src/lib/discord_game_sdk/")
|
||||||
|
|
||||||
|
# Patch the SDK to actually build, since it's missing an include
|
||||||
|
with open("src/lib/discord_game_sdk/cpp/types.h", "r+") as f:
|
||||||
|
s = f.read();
|
||||||
|
f.seek(0);
|
||||||
|
f.write("#include <cstdint>\n" + s)
|
||||||
|
|
||||||
copy_tree("src/lib/discord_game_sdk/lib/", "src/lib/discord_game_sdk/bin/")
|
copy_tree("src/lib/discord_game_sdk/lib/", "src/lib/discord_game_sdk/bin/")
|
||||||
os.rename(
|
os.rename(
|
||||||
"src/lib/discord_game_sdk/bin/aarch64/discord_game_sdk.dylib",
|
"src/lib/discord_game_sdk/bin/aarch64/discord_game_sdk.dylib",
|
||||||
|
Reference in New Issue
Block a user