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<