mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-30 19:09:43 -06:00
don't use std::map and std::function in scheduler
This commit is contained in:
@ -34,7 +34,7 @@ void WriteDateTime(int num, u8 val);
|
||||
|
||||
RTC::RTC(melonDS::NDS& nds) : NDS(nds)
|
||||
{
|
||||
NDS.RegisterEventFunc(Event_RTC, 0, MemberEventFunc(RTC, ClockTimer));
|
||||
NDS.RegisterEventFuncs(Event_RTC, this, {MakeEventThunk(RTC, ClockTimer)});
|
||||
|
||||
ResetState();
|
||||
|
||||
@ -45,7 +45,7 @@ RTC::RTC(melonDS::NDS& nds) : NDS(nds)
|
||||
|
||||
RTC::~RTC()
|
||||
{
|
||||
NDS.UnregisterEventFunc(Event_RTC, 0);
|
||||
NDS.UnregisterEventFuncs(Event_RTC);
|
||||
}
|
||||
|
||||
void RTC::Reset()
|
||||
|
Reference in New Issue
Block a user