Fix some warnings with SNC PS3 compiler

This commit is contained in:
twinaphex 2016-02-03 15:25:37 +01:00
parent 7e4f17ef8d
commit 5f3ddb4bfc
2 changed files with 7 additions and 10 deletions

View File

@ -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;

View File

@ -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;