update ngcft1

This commit is contained in:
Green Sky 2024-04-29 11:56:04 +02:00
parent 7e7c539f86
commit 0bd7131d9c
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 1a3fcc67576adb96f873f053cd5e836f5c9296b6
Subproject commit e574c4f7798ab8529879fb9f58795ac3c346daf6

@ -1 +1 @@
Subproject commit dfcb5dee97617048bc553c195285228ab060ccfb
Subproject commit eb2a19d8f38c3032258180dae08f65b1574b10e4

View File

@ -32,6 +32,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
}
try {
auto* os = PLUG_RESOLVE_INSTANCE(ObjectStore2);
auto* tox_i = PLUG_RESOLVE_INSTANCE(ToxI);
auto* tox_event_provider_i = PLUG_RESOLVE_INSTANCE(ToxEventProviderI);
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
@ -42,7 +43,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
// construct with fetched dependencies
g_ngcextep = std::make_unique<NGCEXTEventProvider>(*tox_event_provider_i);
g_ngcft1 = std::make_unique<NGCFT1>(*tox_i, *tox_event_provider_i, *g_ngcextep.get());
g_sha1_ngcft1 = std::make_unique<SHA1_NGCFT1>(*cr, *rmm, *g_ngcft1.get(), *tcm);
g_sha1_ngcft1 = std::make_unique<SHA1_NGCFT1>(*os, *cr, *rmm, *g_ngcft1.get(), *tcm);
// register types
PLUG_PROVIDE_INSTANCE(NGCEXTEventProviderI, plugin_name, g_ngcextep.get());