X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fkeybindings.c;fp=src%2Fkeybindings.c;h=c318ec18f49c1501c0e72640d7e01db01303350a;hb=e55ff0044903e9af87e24d01a809ce0a0c562633;hp=6fabea65ed499074ef9deb3e65077e8572f0ab64;hpb=24a8edd8a9f5393cf67c1d9a86923f388e43e104;p=plomrogue
diff --git a/src/keybindings.c b/src/keybindings.c
index 6fabea6..c318ec1 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -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++)