renamed project
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<img src="https://github.com/vaporvee/discord-rpc-godot/blob/main/project/assets/Banner_v1.png?raw=true">
|
<img src="https://github.com/vaporvee/discord-sdk-godot/blob/main/project/assets/Banner_v1.png?raw=true">
|
||||||
|
|
||||||
# discord-rpc-godot
|
|
||||||
### This is version 1.0! In future versions there will be lobbies, invites, linux builds etc. very soon!
|
### This is version 1.0! In future versions there will be lobbies, invites, linux builds etc. very soon!
|
||||||
Don't forget to run the following command **if you clone this project** or the godot-cpp folder will be empty
|
Don't forget to run the following command **if you clone this project** or the godot-cpp folder will be empty
|
||||||
```sh
|
```sh
|
||||||
@@ -11,7 +10,7 @@ git submodule update --init
|
|||||||
2. Enable the addon in your Project Settings under "Plugins" and "DiscordSDK". (if it doesn't show up reopen the project)
|
2. Enable the addon in your Project Settings under "Plugins" and "DiscordSDK". (if it doesn't show up reopen the project)
|
||||||
3. Create an Application under https://discord.com/developers/applications and get the Application ID
|
3. Create an Application under https://discord.com/developers/applications and get the Application ID
|
||||||
4. (optional) Set images under "Rich Presence" and "Art Assets" and remember the keys
|
4. (optional) Set images under "Rich Presence" and "Art Assets" and remember the keys
|
||||||
5. Exporting: You need to copy the `discord_game_sdk.dll` or on linux `discord_game_sdk.so` from `res://addons/discord-rpc-gd/bin/PLATFORM/discord_game_sdk.[dll/.so]` to your exported project in the same directory as `discord_game_sdk_binding_debug.[dll/.so]`
|
5. Exporting: You need to copy the `discord_game_sdk.dll` or on linux `discord_game_sdk.so` from `res://addons/discord-sdk-gd/bin/PLATFORM/discord_game_sdk.[dll/.so]` to your exported project in the same directory as `discord_game_sdk_binding_debug.[dll/.so]`
|
||||||
```gdscript
|
```gdscript
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
|
10
SConstruct
10
SConstruct
@@ -33,8 +33,10 @@ env.Append(LIBS=[discord_library.replace(".dll", "")])
|
|||||||
env.Append(CPPPATH=['src/'])
|
env.Append(CPPPATH=['src/'])
|
||||||
sources += Glob('src/*.cpp')
|
sources += Glob('src/*.cpp')
|
||||||
|
|
||||||
#The finished exports
|
# The finished exports
|
||||||
library = env.SharedLibrary(target="project/addons/discord-rpc-gd/bin/" + libexportfolder + "discord_game_sdk_binding" + debugsuffix, source=sources)
|
library = env.SharedLibrary(target="project/addons/discord-sdk-gd/bin/" +
|
||||||
env.Depends(library, Command("project/addons/discord-rpc-gd/bin/" + libexportfolder + discord_library, "lib/discord-game-sdk/" + discord_library, Copy("$TARGET", "$SOURCE")))
|
libexportfolder + "discord_game_sdk_binding" + debugsuffix, source=sources)
|
||||||
|
env.Depends(library, Command("project/addons/discord-sdk-gd/bin/" + libexportfolder +
|
||||||
|
discord_library, "lib/discord-game-sdk/" + discord_library, Copy("$TARGET", "$SOURCE")))
|
||||||
|
|
||||||
Default(library)
|
Default(library)
|
||||||
|
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
[configuration]
|
[configuration]
|
||||||
|
|
||||||
entry_symbol = "discordrpcgd_library_init"
|
entry_symbol = "discordsdkgd_library_init"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
@@ -1,7 +1,7 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
|
|
||||||
name="DiscordRPC"
|
name="DiscordSDK"
|
||||||
description="Takes the activity manager part from the discord-game-sdk and adds GDscript functionality."
|
description="Takes the activity manager part from the discord-game-sdk and adds GDscript functionality."
|
||||||
author="vaporvee"
|
author="vaporvee"
|
||||||
version="0.1"
|
version="1.0"
|
||||||
script="plugin.gd"
|
script="plugin.gd"
|
@@ -2,7 +2,7 @@
|
|||||||
extends EditorPlugin
|
extends EditorPlugin
|
||||||
|
|
||||||
func _enter_tree():
|
func _enter_tree():
|
||||||
add_autoload_singleton("discord_coreupdater", "res://addons/discord-rpc-gd/discord_coreupdater.gd")
|
add_autoload_singleton("discord_coreupdater", "res://addons/discord-sdk-gd/discord_coreupdater.gd")
|
||||||
|
|
||||||
|
|
||||||
func disable_plugin():
|
func disable_plugin():
|
@@ -10,7 +10,7 @@ config_version=5
|
|||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="GDExtension DiscordRPC Test Project"
|
config/name="GDExtension DiscordSDK Test Project"
|
||||||
run/main_scene="res://main.tscn"
|
run/main_scene="res://main.tscn"
|
||||||
config/features=PackedStringArray("4.0")
|
config/features=PackedStringArray("4.0")
|
||||||
boot_splash/bg_color=Color(0.25098, 0.305882, 0.929412, 1)
|
boot_splash/bg_color=Color(0.25098, 0.305882, 0.929412, 1)
|
||||||
@@ -20,7 +20,7 @@ config/icon="res://assets/Logo_V2.png"
|
|||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
discord_coreupdater="*res://addons/discord-rpc-gd/discord_coreupdater.gd"
|
discord_coreupdater="*res://addons/discord-sdk-gd/discord_coreupdater.gd"
|
||||||
|
|
||||||
[dotnet]
|
[dotnet]
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ project/assembly_name="GDExtension Test Project"
|
|||||||
|
|
||||||
[editor_plugins]
|
[editor_plugins]
|
||||||
|
|
||||||
enabled=PackedStringArray("res://addons/discord-rpc-gd/plugin.cfg")
|
enabled=PackedStringArray("res://addons/discord-sdk-gd/plugin.cfg")
|
||||||
|
|
||||||
[native_extensions]
|
[native_extensions]
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ void gdextension_terminate(ModuleInitializationLevel p_level)
|
|||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
GDExtensionBool GDE_EXPORT discordrpcgd_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
|
GDExtensionBool GDE_EXPORT discordsdkgd_library_init(const GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
|
||||||
{
|
{
|
||||||
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization);
|
godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization);
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#ifndef REGISTER_TYPES_H
|
#ifndef REGISTER_TYPES_H
|
||||||
#define REGISTER_TYPES_H
|
#define REGISTER_TYPES_H
|
||||||
|
|
||||||
void initialize_discordrpc_module();
|
void initialize_discordsdk_module();
|
||||||
void uninitialize_discordrpc_module();
|
void uninitialize_discordsdk_module();
|
||||||
|
|
||||||
#endif // REGISTER_TYPES_H
|
#endif // REGISTER_TYPES_H
|
Reference in New Issue
Block a user