IT WORKS BUT ITS SCUFFED AS HELL
This commit is contained in:
BIN
src/achievement_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/achievement_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/activity_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/activity_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/application_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/application_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/core.windows.template_debug.x86_64.obj
Normal file
BIN
src/core.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/image_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/image_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/lobby_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/lobby_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
10
src/main.cpp
10
src/main.cpp
@@ -1,11 +1,11 @@
|
||||
#include "main.h"
|
||||
#include <godot_cpp/core/class_db.hpp>
|
||||
#include <godot_cpp/variant/utility_functions.hpp>
|
||||
#include "./discord-game-sdk-cpp/discord.h"
|
||||
#include "discord.h"
|
||||
|
||||
using namespace godot;
|
||||
|
||||
// discord::Core *core{};
|
||||
discord::Core *core{};
|
||||
|
||||
void DiscordRPC::_bind_methods()
|
||||
{
|
||||
@@ -24,16 +24,16 @@ DiscordRPC::~DiscordRPC()
|
||||
|
||||
void DiscordRPC::_ready()
|
||||
{
|
||||
/*auto result = discord::Core::Create(461618159171141643, DiscordCreateFlags_Default, &core);
|
||||
auto result = discord::Core::Create(461618159171141643, DiscordCreateFlags_Default, &core);
|
||||
discord::Activity activity{};
|
||||
activity.SetState("Testing");
|
||||
activity.SetDetails("Fruit Loops");
|
||||
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {
|
||||
|
||||
});*/
|
||||
});
|
||||
}
|
||||
|
||||
void DiscordRPC::_process(float delta)
|
||||
{
|
||||
//::core->RunCallbacks();
|
||||
::core->RunCallbacks();
|
||||
}
|
@@ -2,11 +2,10 @@
|
||||
#define DISCORDRPC_H
|
||||
|
||||
#include <godot_cpp/classes/node.hpp>
|
||||
#include "./discord-game-sdk-cpp/discord.h"
|
||||
#include "discord.h"
|
||||
|
||||
namespace godot
|
||||
{
|
||||
|
||||
class DiscordRPC : public Node
|
||||
{
|
||||
GDCLASS(DiscordRPC, Node)
|
||||
|
Binary file not shown.
BIN
src/network_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/network_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/overlay_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/overlay_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/relationship_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/relationship_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/storage_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/storage_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/store_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/store_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/types.windows.template_debug.x86_64.obj
Normal file
BIN
src/types.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/user_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/user_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/voice_manager.windows.template_debug.x86_64.obj
Normal file
BIN
src/voice_manager.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
Reference in New Issue
Block a user