diff options
| author | neonloop | 2023-03-15 15:41:32 +0000 | 
|---|---|---|
| committer | neonloop | 2023-03-15 15:41:32 +0000 | 
| commit | c1b9e80da4ee5b7177797431b8e246a3f45364cd (patch) | |
| tree | fec99e071fe2911a2385ee91bb320b23127cf302 /patches | |
| parent | 1b744066a50215970db21b44cb97ec512d6254fd (diff) | |
| download | picoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.tar.gz picoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.tar.bz2 picoarch-c1b9e80da4ee5b7177797431b8e246a3f45364cd.zip  | |
Changes libpicofe to use states starting from 1
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/libpicofe/0004-1-indexed-state-slots.patch | 22 | 
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");
 + 
  | 
