input: fix wrong dir creation.

This commit is contained in:
sorgelig
2021-05-04 18:59:07 +08:00
parent d08103669a
commit eb59e42967

View File

@@ -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);