From 434f714ef19071df2dc27da86120dcb73dc392e4 Mon Sep 17 00:00:00 2001 From: profi200 Date: Thu, 9 Dec 2021 13:22:39 +0100 Subject: [PATCH] Fixed white screen issues with save type none games. Fixes #48. --- libn3ds/source/arm9/drivers/lgy.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libn3ds/source/arm9/drivers/lgy.c b/libn3ds/source/arm9/drivers/lgy.c index dd5c115..6baebd6 100644 --- a/libn3ds/source/arm9/drivers/lgy.c +++ b/libn3ds/source/arm9/drivers/lgy.c @@ -80,11 +80,9 @@ static u32 setupSaveType(u16 saveType) { Lgy *const lgy = getLgyRegs(); lgy->gba_save_type = saveType; - // The last shift in the table is technically undefined behavior (C standard) - // but on ARM this will always result in 0. - // https://developer.arm.com/documentation/dui0489/h/arm-and-thumb-instructions/shift-operations - static const u8 saveSizeShiftLut[16] = {9, 9, 13, 13, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 15, 32}; - const u32 saveSize = 1u<