mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 17:19:54 -06:00
don't use std::map and std::function in scheduler
This commit is contained in:
@ -91,7 +91,7 @@ bool MACIsBroadcast(const u8* a)
|
||||
|
||||
Wifi::Wifi(melonDS::NDS& nds) : NDS(nds)
|
||||
{
|
||||
NDS.RegisterEventFunc(Event_Wifi, 0, MemberEventFunc(Wifi, USTimer));
|
||||
NDS.RegisterEventFuncs(Event_Wifi, this, {MakeEventThunk(Wifi, USTimer)});
|
||||
|
||||
WifiAP = new class WifiAP(this, NDS.UserData);
|
||||
}
|
||||
@ -100,7 +100,7 @@ Wifi::~Wifi()
|
||||
{
|
||||
delete WifiAP; WifiAP = nullptr;
|
||||
|
||||
NDS.UnregisterEventFunc(Event_Wifi, 0);
|
||||
NDS.UnregisterEventFuncs(Event_Wifi);
|
||||
}
|
||||
|
||||
void Wifi::Reset()
|
||||
|
Reference in New Issue
Block a user