libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.06k stars 1.81k forks source link

RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY not set when using the -s commandline switch #857

Closed andres-asm closed 9 years ago

andres-asm commented 10 years ago

Some cores save stuff using their own implementation (such as MAME/MEDNAFEN). @Themaister added RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY so you can tell the core where to save when it saves without using the SRAM interface and it works correctly unless you specify a directory with the -s commandline switch.

Furthermore, if a path is set in the cfg, using this -s switch causes RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY to be empty for some reason.

andres-asm commented 9 years ago

This seems to affect per-core settings too:

I recently manually set each core configuration with a separate saves folder, like "RetroArch->Saves->Super Famicom or PlayStation", and so on. However, when I load a core the saves folder path is set only once for the first core I load when first initializing RetroArch, and no longer sets the saves path for the next cores I load afterwards. I hope that's a clear explanation on this problem.

http://libretro.com/forums/showthread.php?t=2305&p=20484&viewfull=1#post20484

andres-asm commented 9 years ago

This is probably fixed by now