Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c41396cdbb | ||
|
abb0cdb0c5 | ||
|
35c1895650 |
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
@@ -23,6 +23,7 @@ body:
|
||||
label: Version
|
||||
description: What version of our software are you running?
|
||||
options:
|
||||
- 2.4
|
||||
- 2.3
|
||||
- 2.2
|
||||
- 2.1
|
||||
|
@@ -1,7 +1,6 @@
|
||||
<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>
|
||||
**Please leave a star that would really help! And thanks to all the people that already starred this project! ❤️**
|
||||
<br />
|
||||
<br />
|
||||
# [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.
@@ -1,6 +1,7 @@
|
||||
[configuration]
|
||||
|
||||
entry_symbol = "discordsdkgd_library_init"
|
||||
compatibility_minimum = 4.1
|
||||
|
||||
[libraries]
|
||||
|
||||
|
@@ -3,5 +3,5 @@
|
||||
name="DiscordSDK"
|
||||
description="Discord Game SDK support for GDScript in Godot"
|
||||
author="vaporvee"
|
||||
version="2.3"
|
||||
version="2.4"
|
||||
script="plugin.gd"
|
||||
|
@@ -12,7 +12,7 @@ config_version=5
|
||||
|
||||
config/name="GDExtension DiscordSDK Test Project"
|
||||
run/main_scene="res://main.tscn"
|
||||
config/features=PackedStringArray("4.0")
|
||||
config/features=PackedStringArray("4.1")
|
||||
boot_splash/bg_color=Color(0.25098, 0.305882, 0.929412, 1)
|
||||
boot_splash/image="res://assets/Banner_v1.png"
|
||||
boot_splash/fullsize=false
|
||||
|
Submodule src/lib/godot-cpp updated: feaba551b5...d627942b64
@@ -11,7 +11,7 @@ using namespace godot;
|
||||
|
||||
static discord_sdk *discordsdk;
|
||||
|
||||
void gdextension_initialize(ModuleInitializationLevel p_level)
|
||||
void initialize_discordsdk_module(ModuleInitializationLevel p_level)
|
||||
{
|
||||
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE)
|
||||
{
|
||||
@@ -21,7 +21,7 @@ void gdextension_initialize(ModuleInitializationLevel p_level)
|
||||
}
|
||||
}
|
||||
|
||||
void gdextension_terminate(ModuleInitializationLevel p_level)
|
||||
void uninitialize_discordsdk_module(ModuleInitializationLevel p_level)
|
||||
{
|
||||
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE)
|
||||
{
|
||||
@@ -32,12 +32,12 @@ void gdextension_terminate(ModuleInitializationLevel p_level)
|
||||
|
||||
extern "C"
|
||||
{
|
||||
GDExtensionBool GDE_EXPORT discordsdkgd_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
|
||||
GDExtensionBool GDE_EXPORT discordsdkgd_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
|
||||
{
|
||||
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization);
|
||||
godot::GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);
|
||||
|
||||
init_obj.register_initializer(gdextension_initialize);
|
||||
init_obj.register_terminator(gdextension_terminate);
|
||||
init_obj.register_initializer(initialize_discordsdk_module);
|
||||
init_obj.register_terminator(uninitialize_discordsdk_module);
|
||||
init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE);
|
||||
|
||||
return init_obj.init();
|
||||
|
Reference in New Issue
Block a user