From c1b9e80da4ee5b7177797431b8e246a3f45364cd Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 15 Mar 2023 15:41:32 +0000 Subject: Changes libpicofe to use states starting from 1 --- patches/libpicofe/0004-1-indexed-state-slots.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 patches/libpicofe/0004-1-indexed-state-slots.patch (limited to 'patches') diff --git a/patches/libpicofe/0004-1-indexed-state-slots.patch b/patches/libpicofe/0004-1-indexed-state-slots.patch new file mode 100644 index 0000000..29ebe2b --- /dev/null +++ b/patches/libpicofe/0004-1-indexed-state-slots.patch @@ -0,0 +1,22 @@ +diff --git a/menu.c b/menu.c +index e91f84a..e19902e 100644 +--- a/menu.c ++++ b/menu.c +@@ -1203,7 +1203,7 @@ rescan: + + // ------------ savestate loader ------------ + +-#define STATE_SLOT_COUNT 10 ++#define STATE_SLOT_COUNT 9 + + static int state_slot_flags = 0; + static int state_slot_times[STATE_SLOT_COUNT]; +@@ -1263,7 +1263,7 @@ static void draw_savestate_menu(int menu_sel, int is_loading) + } + } + +- text_out16(x, y, "SLOT %i (%s)", i, time_buf); ++ text_out16(x, y, "SLOT %i (%s)", i+1, time_buf); + } + text_out16(x, y, "back"); + -- cgit v1.2.3