A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

xrick: Fix various errors/warnings

* Piles of warnings in miniz when built with modern toolchain
* Pointer arithematic error in PRNG
* Casting between int and void * for file descriptors
* Warning on non-color targets

Remaining:

* Failure on XRGB888 LCDs due to issue with core LCD macros
* Failure on interleaved greyscale LCDs (?)
* HTML manual build failure

Change-Id: Ibf6d2c001ec8daf583731d5da15b86b5352773e7

+16 -8
+5
apps/plugins/xrick/3rd_party/miniz/miniz.c
··· 219 219 #define MINIZ_HAS_64BIT_REGISTERS 1 220 220 #endif 221 221 222 + #if (__GNUC__ >= 7) 223 + #pragma GCC diagnostic push 224 + #pragma GCC diagnostic ignored "-Wmisleading-indentation" 225 + #endif 226 + 222 227 #ifdef __cplusplus 223 228 extern "C" { 224 229 #endif
+1 -1
apps/plugins/xrick/e_them.c
··· 342 342 static U8 *cl = (U8 *)&cx; 343 343 static U8 *ch = (U8 *)&cx + 1; 344 344 static U16 *sl = (U16 *)&e_them_rndseed; 345 - static U16 *sh = (U16 *)&e_them_rndseed + 2; 345 + static U16 *sh = ((U16 *)&e_them_rndseed) + 1; 346 346 347 347 /*sys_printf("e_them_t2 ------------------------------\n");*/ 348 348
+4 -4
apps/plugins/xrick/system/sysfile_rockbox.c
··· 64 64 */ 65 65 file_t sysfile_open(const char *name) 66 66 { 67 - int fd; 67 + long fd; 68 68 69 69 size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2; 70 70 char *fullPath = sysmem_push(fullPathLength); ··· 97 97 */ 98 98 int sysfile_read(file_t file, void *buf, size_t size, size_t count) 99 99 { 100 - int fd = (int)file; 100 + long fd = (long)file; 101 101 return (rb->read(fd, buf, size * count) / size); 102 102 } 103 103 ··· 106 106 */ 107 107 int sysfile_seek(file_t file, long offset, int origin) 108 108 { 109 - int fd = (int)file; 109 + long fd = (long)file; 110 110 return rb->lseek(fd, offset, origin); 111 111 } 112 112 ··· 115 115 */ 116 116 void sysfile_close(file_t file) 117 117 { 118 - int fd = (int)file; 118 + long fd = (long)file; 119 119 rb->close(fd); 120 120 } 121 121
+2
apps/plugins/xrick/system/sysvid_rockbox.c
··· 55 55 # endif 56 56 #endif /* ndef HAVE_LCD_COLOR */ 57 57 58 + #ifdef HAVE_LCD_COLOR 58 59 static fb_data *lcd_fb = NULL; 60 + #endif 59 61 60 62 #if (LCD_HEIGHT < SYSVID_HEIGHT) 61 63 enum { ROW_RESIZE_STEP = (LCD_HEIGHT << 16) / SYSVID_HEIGHT };
+4 -3
manual/plugins/xrick.tex
··· 1 - % $Id$ % 2 1 \subsection{xrick} 3 2 \screenshot{plugins/images/ss-xrick}{xrick}{img:xrick} 4 3 xrick is a clone of the platform game ··· 21 20 \subsubsection{Getting started} 22 21 For the game to run you need \fname{.dat} game files located in 23 22 \fname{/.rockbox/xrick} on your \dap. 24 - Create the directory and extract xrick \fname{data.zip} archive into it. 23 + 25 24 The needed files can be found at 26 - \url{https://github.com/pierluigi-vicinanza/xrick/blob/master/game/data.zip}. 25 + \url{https://download.rockbox.org/useful/xrick-data.zip}. 26 + 27 + Extract the \fname{xrick-data.zip} archive into the top-level directory of your \dap. 27 28 28 29 \subsubsection{Controls} 29 30 By holding down \emph{Fire} and pressing \emph{Left} or \emph{Right},