mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available
This commit is contained in:
parent
5f5e11a0ba
commit
3c909a3059
@ -35742,7 +35742,7 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
case RARCH_CTL_CORE_OPTIONS_LIST_GET:
|
||||
{
|
||||
core_option_manager_t **coreopts = (core_option_manager_t**)data;
|
||||
if (!coreopts)
|
||||
if (!coreopts || !p_rarch->runloop_core_options)
|
||||
return false;
|
||||
*coreopts = p_rarch->runloop_core_options;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user