X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fkeybindings.c;h=c318ec18f49c1501c0e72640d7e01db01303350a;hb=c1a7e6cdb13cd7d883424afdf0fe08e9a10fbc28;hp=6fabea65ed499074ef9deb3e65077e8572f0ab64;hpb=9ea97fca7b7de4de9ed61680de4bb08cd19ff206;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++)