mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
better, less hacky, more OOP-friendly scheduler design
This commit is contained in:
@ -129,6 +129,8 @@ void AudioCb(std::array<s16, 2> frame)
|
||||
|
||||
bool Init()
|
||||
{
|
||||
NDS::RegisterEventFunc(NDS::Event_DSi_DSP, 0, DSPCatchUpU32);
|
||||
|
||||
TeakraCore = new Teakra::Teakra();
|
||||
SCFG_RST = false;
|
||||
|
||||
@ -171,6 +173,8 @@ void DeInit()
|
||||
//PDATAReadFifo = NULL;
|
||||
//PDATAWriteFifo = NULL;
|
||||
TeakraCore = NULL;
|
||||
|
||||
NDS::UnregisterEventFunc(NDS::Event_DSi_DSP, 0);
|
||||
}
|
||||
|
||||
void Reset()
|
||||
@ -579,7 +583,7 @@ void Run(u32 cycles)
|
||||
|
||||
NDS::CancelEvent(NDS::Event_DSi_DSP);
|
||||
NDS::ScheduleEvent(NDS::Event_DSi_DSP, false,
|
||||
16384/*from citra (TeakraSlice)*/, DSPCatchUpU32, 0);
|
||||
16384/*from citra (TeakraSlice)*/, 0, 0);
|
||||
}
|
||||
|
||||
void DoSavestate(Savestate* file)
|
||||
|
Reference in New Issue
Block a user