mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
make it work for cores that don't use the save interface too
This commit is contained in:
parent
a0fe04ead5
commit
bece39d2a7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user