fixed linux builds
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -88,14 +88,13 @@ SET_GET(is_public_party, activity.GetParty().SetPrivacy(static_cast<discord::Act
|
|||||||
discord_sdk::discord_sdk()
|
discord_sdk::discord_sdk()
|
||||||
{
|
{
|
||||||
singleton = this;
|
singleton = this;
|
||||||
app_id = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
discord_sdk::~discord_sdk()
|
discord_sdk::~discord_sdk()
|
||||||
{
|
{
|
||||||
app_id = 0;
|
|
||||||
core->~Core();
|
|
||||||
singleton = nullptr;
|
singleton = nullptr;
|
||||||
|
delete core;
|
||||||
|
core = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
discord_sdk *discord_sdk::get_singleton()
|
discord_sdk *discord_sdk::get_singleton()
|
||||||
@@ -208,8 +207,8 @@ void discord_sdk::clear(bool reset_values = false)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
old_app_id = app_id;
|
old_app_id = app_id;
|
||||||
set_app_id(0);
|
delete core;
|
||||||
core->~Core();
|
core = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Submodule src/lib/godot-cpp updated: 54136ee835...78ffea5b13
Reference in New Issue
Block a user