diff --git a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll index d574699..cd6aa06 100644 Binary files a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll and b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding.dll differ diff --git a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll index 53942aa..7dc2112 100644 Binary files a/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll and b/project/addons/discord-sdk-gd/bin/windows/discord_game_sdk_binding_debug.dll differ diff --git a/src/discordgodot.cpp b/src/discordgodot.cpp index 338ec35..eb28d2a 100644 --- a/src/discordgodot.cpp +++ b/src/discordgodot.cpp @@ -84,7 +84,7 @@ void discord_sdk::_bind_methods() ADD_SIGNAL(MethodInfo("activity_join_request", PropertyInfo(Variant::DICTIONARY, "user_requesting"))); ClassDB::bind_method(D_METHOD("refresh"), &discord_sdk::refresh); - ClassDB::bind_method(D_METHOD("clear", "reset_values"), &discord_sdk::clear, false); + ClassDB::bind_method(D_METHOD("clear", "reset_values"), &discord_sdk::clear, DEFVAL(false)); ClassDB::bind_method(D_METHOD("unclear"), &discord_sdk::unclear); ClassDB::bind_method(D_METHOD("register_command", "command"), &discord_sdk::register_command); @@ -195,7 +195,9 @@ void discord_sdk::set_app_id(int64_t value) } int64_t discord_sdk::get_app_id() { - return app_id; + if (app_id != 0) + return app_id; + return old_app_id; } void discord_sdk::set_state(String value)