home · contact · privacy
Use command IDs from command DB as what is recorded in record file.
[plomrogue] / src / keybindings.c
index 6fabea65ed499074ef9deb3e65077e8572f0ab64..c318ec18f49c1501c0e72640d7e01db01303350a 100644 (file)
@@ -16,7 +16,7 @@
 
 extern void init_keybindings(struct World * world)
 {
-    FILE * file = fopen("keybindings", "r");
+    FILE * file = fopen("config/keybindings", "r");
     uint16_t lines, linemax;
     textfile_sizes(file, &linemax, &lines);
     struct KeyBinding * keybindings = malloc(lines * sizeof(struct KeyBinding));
@@ -49,7 +49,7 @@ extern void save_keybindings(struct World * world)
     struct KeysWinData * keyswindata = (struct KeysWinData *)
                                        world->keyswindata;
     struct KeyBinding * keybindings = world->keybindings;
-    FILE * file = fopen("keybindings", "w");
+    FILE * file = fopen("config/keybindings", "w");
     uint16_t linemax = 0;
     uint16_t i;
     for (i = 0; i <= keyswindata->max; i++)