Merge pull request #7 from Rocklima2/master

Fix save bug directory
This commit is contained in:
Twinaphex 2016-04-21 21:09:18 +02:00
commit b129bb3ee5

View File

@ -540,7 +540,8 @@ void retro_init(void)
if (environ_cb(RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY, &dir) && dir)
{
// If save directory is defined use it, otherwise use system directory
retro_save_directory = *dir ? dir : retro_base_directory;
// retro_save_directory = *dir ? dir : retro_base_directory;
retro_save_directory = dir;
// Make sure that we don't have any lingering slashes, etc, as they break Windows.
size_t last = retro_save_directory.find_last_not_of("/\\");
if (last != std::string::npos)