mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Rewrite core_load_game
This commit is contained in:
parent
577c2e93a1
commit
ebeb081562
@ -255,13 +255,12 @@ bool core_get_memory(retro_ctx_memory_info_t *info)
|
|||||||
|
|
||||||
bool core_load_game(retro_ctx_load_content_info_t *load_info)
|
bool core_load_game(retro_ctx_load_content_info_t *load_info)
|
||||||
{
|
{
|
||||||
if (!load_info)
|
if (load_info && load_info->special)
|
||||||
return false;
|
|
||||||
|
|
||||||
if (load_info->special)
|
|
||||||
core_game_loaded = core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
|
core_game_loaded = core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
|
||||||
|
else if (load_info && *load_info->content->elems[0].data)
|
||||||
|
core_game_loaded = core.retro_load_game(load_info->info);
|
||||||
else
|
else
|
||||||
core_game_loaded = core.retro_load_game(*load_info->content->elems[0].data ? load_info->info : NULL);
|
core_game_loaded = core.retro_load_game(NULL);
|
||||||
|
|
||||||
return core_game_loaded;
|
return core_game_loaded;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user