From e55ff0044903e9af87e24d01a809ce0a0c562633 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 29 Aug 2013 00:17:34 +0200 Subject: [PATCH] Moved config files into config/ directory. --- defs => config/defs | 0 keybindings => config/keybindings | 0 src/keybindings.c | 4 ++-- src/main.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename defs => config/defs (100%) rename keybindings => config/keybindings (100%) diff --git a/defs b/config/defs similarity index 100% rename from defs rename to config/defs diff --git a/keybindings b/config/keybindings similarity index 100% rename from keybindings rename to config/keybindings 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++) diff --git a/src/main.c b/src/main.c index 247ec50..38e67b8 100644 --- a/src/main.c +++ b/src/main.c @@ -99,7 +99,7 @@ int main(int argc, char *argv[]) world.player = &player; world.monster = 0; world.item = 0; - init_map_object_defs(&world, "defs"); + init_map_object_defs(&world, "config/defs"); /* For interactive mode, try to load world state from savefile. */ char * err_o = "Trouble loading game (fopen() in main()) / " -- 2.30.2