A DIFFERENT ERROR YEEEAAAHH
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
30
src/main.cpp
30
src/main.cpp
@@ -6,30 +6,34 @@
|
||||
using namespace godot;
|
||||
using namespace discord;
|
||||
|
||||
Core* core{};
|
||||
Core *core{};
|
||||
|
||||
void DiscordRPC::_bind_methods() {
|
||||
void DiscordRPC::_bind_methods()
|
||||
{
|
||||
}
|
||||
|
||||
DiscordRPC::DiscordRPC() {
|
||||
DiscordRPC::DiscordRPC()
|
||||
{
|
||||
// initialize any variables here
|
||||
time_passed = 0.0;
|
||||
}
|
||||
|
||||
DiscordRPC::~DiscordRPC() {
|
||||
DiscordRPC::~DiscordRPC()
|
||||
{
|
||||
// add your cleanup here
|
||||
}
|
||||
|
||||
void DiscordRPC::_ready() {
|
||||
discord::Result res /*= Core::Create(53908232506183680, DiscordCreateFlags_NoRequireDiscord, &core)*/;
|
||||
Activity activity{};
|
||||
void DiscordRPC::_ready()
|
||||
{
|
||||
discord::Result res = Core::Create(53908232506183680, DiscordCreateFlags_NoRequireDiscord, &core);
|
||||
Activity activity{};
|
||||
UtilityFunctions::print(core);
|
||||
/*activity.SetState("Testing");
|
||||
activity.SetDetails("Fruit Loops");
|
||||
core->ActivityManager().UpdateActivity(activity, [](Result res) {
|
||||
});*/
|
||||
activity.SetState("Testing");
|
||||
activity.SetDetails("Fruit Loops");
|
||||
core->ActivityManager().UpdateActivity(activity, [](Result res) {});
|
||||
}
|
||||
|
||||
void DiscordRPC::_process(float delta) {
|
||||
//::core->RunCallbacks();
|
||||
void DiscordRPC::_process(float delta)
|
||||
{
|
||||
::core->RunCallbacks();
|
||||
}
|
BIN
src/main.windows.template_debug.x86_64.obj
Normal file
BIN
src/main.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
BIN
src/register_types.windows.template_debug.x86_64.obj
Normal file
BIN
src/register_types.windows.template_debug.x86_64.obj
Normal file
Binary file not shown.
Reference in New Issue
Block a user