comparison 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
comparison
equal deleted inserted replaced
2456:72d0eac49507 2457:9da3de58410d
1 #include <string.h> 1 #include <string.h>
2 #include <stdlib.h>
2 #include "system.h" 3 #include "system.h"
3 #include "genesis.h" 4 #include "genesis.h"
4 #include "gen_player.h" 5 #include "gen_player.h"
5 #include "sms.h" 6 #include "sms.h"
6 #include "mediaplayer.h" 7 #include "mediaplayer.h"
140 system->request_exit(system); 141 system->request_exit(system);
141 } 142 }
142 143
143 void* load_media_subfile(const system_media *media, char *path, uint32_t *sizeout) 144 void* load_media_subfile(const system_media *media, char *path, uint32_t *sizeout)
144 { 145 {
146 #ifdef IS_LIB
147 //TODO: Figure out how to handle Pico artwork and similar cases in libretro builds
148 return NULL;
149 #else
145 char *to_free = NULL; 150 char *to_free = NULL;
146 void *buffer = NULL; 151 void *buffer = NULL;
147 uint32_t size = 0; 152 uint32_t size = 0;
148 if (media->zip) { 153 if (media->zip) {
149 uint32_t i; 154 uint32_t i;
179 if (sizeout) { 184 if (sizeout) {
180 *sizeout = size; 185 *sizeout = size;
181 } 186 }
182 free(to_free); 187 free(to_free);
183 return buffer; 188 return buffer;
189 #endif
184 } 190 }