Merge pull request #84 from negativeExponent/path_separator

Use correct path separator
This commit is contained in:
Autechre 2020-10-29 03:29:19 +01:00 committed by GitHub
commit c54a3bf21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2428,7 +2428,7 @@ u32 load_gamepak(const struct retro_game_info* info, const char *name)
else
p = gamepak_filename;
snprintf(backup_filename, sizeof(backup_filename), "%s/%s", save_path, p);
snprintf(backup_filename, sizeof(backup_filename), "%s%c%s", save_path, PATH_SEPARATOR_CHAR, p);
p = strrchr(backup_filename, '.');
if (p)
strcpy(p, ".sav");