mirror of
https://github.com/libretro/RetroArch
synced 2024-12-28 09:29:16 +00:00
Fix some warnings with SNC PS3 compiler
This commit is contained in:
parent
7e4f17ef8d
commit
5f3ddb4bfc
16
content.c
16
content.c
@ -329,11 +329,15 @@ error:
|
||||
*
|
||||
* Load a RAM state from disk to memory.
|
||||
*/
|
||||
static bool load_ram_file(ram_type_t *ram)
|
||||
static bool load_ram_file(void *data)
|
||||
{
|
||||
ssize_t rc;
|
||||
retro_ctx_memory_info_t mem_info;
|
||||
void *buf = NULL;
|
||||
void *buf = NULL;
|
||||
ram_type_t *ram = (ram_type_t*)data;
|
||||
|
||||
if (!ram)
|
||||
return false;
|
||||
|
||||
mem_info.id = ram->type;
|
||||
|
||||
@ -812,13 +816,7 @@ bool content_ctl(enum content_ctl_state state, void *data)
|
||||
switch(state)
|
||||
{
|
||||
case CONTENT_CTL_LOAD_RAM_FILE:
|
||||
{
|
||||
ram_type_t *ram = (ram_type_t*)data;
|
||||
if (!ram)
|
||||
return false;
|
||||
return load_ram_file(ram);
|
||||
}
|
||||
break;
|
||||
return load_ram_file(data);
|
||||
case CONTENT_CTL_SAVE_RAM_FILE:
|
||||
{
|
||||
ram_type_t *ram = (ram_type_t*)data;
|
||||
|
@ -233,7 +233,6 @@ bool core_ctl(enum core_ctl_state state, void *data)
|
||||
return core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
|
||||
return core.retro_load_game(*load_info->content->elems[0].data ? load_info->info : NULL);
|
||||
}
|
||||
break;
|
||||
case CORE_CTL_RETRO_GET_SYSTEM_INFO:
|
||||
{
|
||||
struct retro_system_info *system = (struct retro_system_info*)data;
|
||||
|
Loading…
Reference in New Issue
Block a user