update to new ngc_events

This commit is contained in:
Green Sky 2023-12-26 21:16:35 +01:00
parent ad918a3253
commit 103f36f2d2
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
#include <iostream> #include <iostream>
NGCEXTEventProvider::NGCEXTEventProvider(ToxEventProviderI& tep) : _tep(tep) { NGCEXTEventProvider::NGCEXTEventProvider(ToxEventProviderI& tep) : _tep(tep) {
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_CUSTOM_PACKET); _tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_CUSTOM_PACKET);
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_CUSTOM_PRIVATE_PACKET); _tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_CUSTOM_PRIVATE_PACKET);
} }
#define _DATA_HAVE(x, error) if ((data_size - curser) < (x)) { error; } #define _DATA_HAVE(x, error) if ((data_size - curser) < (x)) { error; }

View File

@ -332,7 +332,7 @@ NGCFT1::NGCFT1(
_neep.subscribe(this, NGCEXT_Event::FT1_DATA_ACK); _neep.subscribe(this, NGCEXT_Event::FT1_DATA_ACK);
_neep.subscribe(this, NGCEXT_Event::FT1_MESSAGE); _neep.subscribe(this, NGCEXT_Event::FT1_MESSAGE);
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_PEER_EXIT); _tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_PEER_EXIT);
} }
void NGCFT1::iterate(float time_delta) { void NGCFT1::iterate(float time_delta) {