aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2023-03-15 15:41:32 +0000
committerneonloop2023-03-15 15:41:32 +0000
commitc1b9e80da4ee5b7177797431b8e246a3f45364cd (patch)
treefec99e071fe2911a2385ee91bb320b23127cf302
parent1b744066a50215970db21b44cb97ec512d6254fd (diff)
downloadpicoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.tar.gz
picoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.tar.bz2
picoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.zip
Changes libpicofe to use states starting from 1
-rw-r--r--patches/libpicofe/0004-1-indexed-state-slots.patch22
1 files changed, 22 insertions, 0 deletions
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");
+