Merge pull request #12079 from jdgleaver/manage-cores-fix

Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available
This commit is contained in:
Autechre 2021-02-26 11:21:07 +01:00 committed by GitHub
commit a535cd5d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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