Mercurial > repos > blastem
diff system.c @ 2457:9da3de58410d
Fix libretro build
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 21 Feb 2024 20:25:06 -0800 |
parents | bed4d3db8a3f |
children | cb62730d5c99 |
line wrap: on
line diff
--- a/system.c Wed Feb 21 20:09:11 2024 -0800 +++ b/system.c Wed Feb 21 20:25:06 2024 -0800 @@ -1,4 +1,5 @@ #include <string.h> +#include <stdlib.h> #include "system.h" #include "genesis.h" #include "gen_player.h" @@ -142,6 +143,10 @@ void* load_media_subfile(const system_media *media, char *path, uint32_t *sizeout) { +#ifdef IS_LIB + //TODO: Figure out how to handle Pico artwork and similar cases in libretro builds + return NULL; +#else char *to_free = NULL; void *buffer = NULL; uint32_t size = 0; @@ -181,4 +186,5 @@ } free(to_free); return buffer; +#endif }