renamed project

This commit is contained in:
Yannik
2023-04-23 13:14:00 +02:00
parent df8b9e5f65
commit 5273c35eb5
13 changed files with 18 additions and 17 deletions

View File

@@ -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!
Don't forget to run the following command **if you clone this project** or the godot-cpp folder will be empty
```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)
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
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
extends Node

View File

@@ -34,7 +34,9 @@ env.Append(CPPPATH=['src/'])
sources += Glob('src/*.cpp')
# The finished exports
library = env.SharedLibrary(target="project/addons/discord-rpc-gd/bin/" + libexportfolder + "discord_game_sdk_binding" + debugsuffix, source=sources)
env.Depends(library, Command("project/addons/discord-rpc-gd/bin/" + libexportfolder + discord_library, "lib/discord-game-sdk/" + discord_library, Copy("$TARGET", "$SOURCE")))
library = env.SharedLibrary(target="project/addons/discord-sdk-gd/bin/" +
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)

View File

@@ -1,6 +1,6 @@
[configuration]
entry_symbol = "discordrpcgd_library_init"
entry_symbol = "discordsdkgd_library_init"
[libraries]

View File

@@ -1,7 +1,7 @@
[plugin]
name="DiscordRPC"
name="DiscordSDK"
description="Takes the activity manager part from the discord-game-sdk and adds GDscript functionality."
author="vaporvee"
version="0.1"
version="1.0"
script="plugin.gd"

View File

@@ -2,7 +2,7 @@
extends EditorPlugin
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():

View File

@@ -10,7 +10,7 @@ config_version=5
[application]
config/name="GDExtension DiscordRPC Test Project"
config/name="GDExtension DiscordSDK Test Project"
run/main_scene="res://main.tscn"
config/features=PackedStringArray("4.0")
boot_splash/bg_color=Color(0.25098, 0.305882, 0.929412, 1)
@@ -20,7 +20,7 @@ config/icon="res://assets/Logo_V2.png"
[autoload]
discord_coreupdater="*res://addons/discord-rpc-gd/discord_coreupdater.gd"
discord_coreupdater="*res://addons/discord-sdk-gd/discord_coreupdater.gd"
[dotnet]
@@ -28,7 +28,7 @@ project/assembly_name="GDExtension Test Project"
[editor_plugins]
enabled=PackedStringArray("res://addons/discord-rpc-gd/plugin.cfg")
enabled=PackedStringArray("res://addons/discord-sdk-gd/plugin.cfg")
[native_extensions]

View File

@@ -33,7 +33,7 @@ void gdextension_terminate(ModuleInitializationLevel p_level)
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);

View File

@@ -1,7 +1,7 @@
#ifndef REGISTER_TYPES_H
#define REGISTER_TYPES_H
void initialize_discordrpc_module();
void uninitialize_discordrpc_module();
void initialize_discordsdk_module();
void uninitialize_discordsdk_module();
#endif // REGISTER_TYPES_H