(Apple) Fix issue when loading RGUI with the dummy core

This commit is contained in:
meancoot 2013-08-14 13:48:57 -04:00
parent 7d6b4cdd26
commit 1eb78a9481

View File

@ -132,8 +132,11 @@ void apple_run_core(RAModuleInfo* core, const char* file)
static char file_path[PATH_MAX];
static const char* argv[] = { "retroarch", "-c", config_path, "-L", core_path, file_path, 0 };
strlcpy(config_path, apple_core.configPath.UTF8String, sizeof(config_path));
if (apple_core)
strlcpy(config_path, apple_core.configPath.UTF8String, sizeof(config_path));
else
strlcpy(config_path, RAModuleInfo.globalConfigPath.UTF8String, sizeof(config_path));
if (file && core)
{