only bind to menu_environment_get when content_info->environ_get is

NULL
This commit is contained in:
twinaphex 2016-05-17 10:35:57 +02:00
parent b83e43e8ce
commit a5cf78fd68
1 changed files with 2 additions and 1 deletions

View File

@ -1978,7 +1978,8 @@ bool rarch_task_push_content_load_default(
case CONTENT_MODE_LOAD_CONTENT_WITH_IMAGEVIEWER_CORE_FROM_MENU:
case CONTENT_MODE_LOAD_CONTENT_WITH_CURRENT_CORE_FROM_COMPANION_UI:
case CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE:
content_info->environ_get = menu_content_environment_get;
if (content_info && !content_info->environ_get)
content_info->environ_get = menu_content_environment_get;
break;
default:
break;