From cb945612a35d62b306fe9c4fae5bcbfeceb3b7f1 Mon Sep 17 00:00:00 2001 From: Duckbill Date: Mon, 25 Dec 2017 14:16:57 +0300 Subject: [PATCH] Remove ast empty cheat from list --- sysmodules/rosalina/source/menus/cheats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysmodules/rosalina/source/menus/cheats.c b/sysmodules/rosalina/source/menus/cheats.c index 94f747e..cd3bdad 100644 --- a/sysmodules/rosalina/source/menus/cheats.c +++ b/sysmodules/rosalina/source/menus/cheats.c @@ -913,6 +913,10 @@ void Cheat_loadCheatsIntoMemory(u64 titleId) { } } } while (R_SUCCEEDED(res)); + + if ((cheatCount > 0) && (cheats[cheatCount - 1]->codesCount == 0)) { + cheatCount--; // Remove last empty cheat + } } void loadCheatsIntoMemoryBin(u64 titleId) {