tried fixing getsetter

This commit is contained in:
2023-04-22 12:34:31 +02:00
parent b84993faed
commit 01cb2ad639
5 changed files with 11 additions and 6 deletions

View File

@@ -16,6 +16,11 @@ class DiscordSDK : public Object
protected:
static void _bind_methods();
private:
int app_id;
String state;
String details;
public:
static DiscordSDK *get_singleton();

View File

@@ -18,7 +18,7 @@ void gdextension_initialize(ModuleInitializationLevel p_level)
ClassDB::register_class<DiscordSDK>();
discordsdk = memnew(DiscordSDK);
Engine::get_singleton()->register_singleton("DiscordActivity", DiscordSDK::get_singleton()); // Cant change the class name in the cpp files for some reason
Engine::get_singleton()->register_singleton("DiscordSDK", DiscordSDK::get_singleton()); // Cant change the class name in the cpp files for some reason
}
}