diff --git a/libraries/libn3ds b/libraries/libn3ds index 15f7b8c..418fb4b 160000 --- a/libraries/libn3ds +++ b/libraries/libn3ds @@ -1 +1 @@ -Subproject commit 15f7b8c5f33695f8f1610b007f10630293081592 +Subproject commit 418fb4b59741f61d7439ae3a854631b2c88b201d diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 066925a..fb2f437 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -42,6 +42,7 @@ #include "arm11/save_type.h" #include "arm11/patch.h" #include "arm11/bitmap.h" +#include "arm11/drivers/pdn.h" #include "arm11/drivers/interrupt.h" @@ -652,17 +653,15 @@ void oafSleep(void) CODEC_setVolumeOverride(-128); GFX_sleep(); + PDN_sleep(); g_isSleeping = true; } void oafWakeup(void) { if (!g_isSleeping) return; - GFX_sleepAwake(); - // VRAM is cleared upon waking up - // need to readjust screen after waking up - adjustGammaTableForGba(); - + PDN_wakeup(); + GFX_sleepAwake(); LGYCAP_start(LGYCAP_DEV_TOP); IRQ_enable(IRQ_CDMA_EVENT0); CODEC_setVolumeOverride(127);