From 56372b0635f93fc5f755150c58baa93ce2db50c2 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Wed, 28 Oct 2020 19:39:41 +0800 Subject: [PATCH] Use correct path separator --- gba_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gba_memory.c b/gba_memory.c index ab45887..02b3e8b 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -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");