+static int clistcallb(char *name, uint32 a, uint8 v, int compare, int s, int type, void *data)\r
+{\r
+ int pos;\r
+\r
+ pos = cheat_start + cheat_pos;\r
+ cheat_pos++;\r
+ if (pos < 0) return 1;\r
+ if (pos > 23) return 0;\r
+\r
+ gp2x_smalltext16_lim(14, pos*10, s ? "ON " : "OFF", 3);\r
+ gp2x_smalltext16_lim(14+6*4, pos*10, type ? "S" : "R", 1);\r
+ gp2x_smalltext16_lim(14+6*6, pos*10, name, 53-8);\r
+\r
+ return 1;\r
+}\r
+\r
+static void draw_patchlist(int sel)\r
+{\r
+ int pos;\r