make it work for cores that don't use the save interface too

This commit is contained in:
radius 2015-10-19 19:52:53 -05:00
parent a0fe04ead5
commit bece39d2a7

View File

@ -725,10 +725,10 @@ bool rarch_environment_cb(unsigned cmd, void *data)
break;
case RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY:
*(const char**)data = *global->dir.savefile ?
global->dir.savefile : NULL;
*(const char**)data = *current_savefile_dir ?
current_savefile_dir : NULL;
RARCH_LOG("Environ SAVE_DIRECTORY: \"%s\".\n",
global->dir.savefile);
current_savefile_dir);
break;
case RETRO_ENVIRONMENT_GET_USERNAME:
@ -1253,4 +1253,3 @@ bool rarch_environment_cb(unsigned cmd, void *data)
return true;
}