Mercurial > repos > blastem
changeset 2457:9da3de58410d
Fix libretro build
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 21 Feb 2024 20:25:06 -0800 |
parents | 72d0eac49507 |
children | 09c9d2c6bac0 |
files | mediaplayer.c system.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mediaplayer.c Wed Feb 21 20:09:11 2024 -0800 +++ b/mediaplayer.c Wed Feb 21 20:25:06 2024 -0800 @@ -453,9 +453,12 @@ } } frame_end: +#ifndef IS_LIB if (player->scope) { scope_render(player->scope); } +#endif + return; } void wave_frame(media_player *player)
--- 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 }