From eb59e429677f5192b565f4ec2d085662ed78929f Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 4 May 2021 18:59:07 +0800 Subject: [PATCH] input: fix wrong dir creation. --- input.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/input.cpp b/input.cpp index dbd8c66..7aaf985 100644 --- a/input.cpp +++ b/input.cpp @@ -1060,7 +1060,6 @@ static int load_map(const char *name, void *pBuffer, int size) static void delete_map(const char *name) { char path[256] = { JOYMAP_DIR }; - FileCreatePath(path); strcat(path, name); FileDeleteConfig(name); FileDeleteConfig(path); @@ -1069,7 +1068,6 @@ static void delete_map(const char *name) static int save_map(const char *name, void *pBuffer, int size) { char path[256] = { JOYMAP_DIR }; - FileCreatePath(path); strcat(path, name); FileDeleteConfig(name); return FileSaveConfig(path, pBuffer, size);