NitrogenEmulator / Nitrogen

Nitrogen Emulator
123 stars 23 forks source link

Move defaultsChanged call to viewDidAppear to be after loadROM #27

Open adammw opened 9 years ago

adammw commented 9 years ago

Fixes #20, #23

Previously, defaultsChanged was crashing on the call EMU_enableSound as it was being called before the SPU_Core was initialised (as initialisation is done as part of EMU_init, which is performed as part of loadROM). To fix the crash, the initial defaultsChanged call was moved to after the loadROM call in viewDidAppear.

/cc @ReimuHakurei @inb4ohnoes