diff options
Diffstat (limited to 'src/markov.h')
-rw-r--r-- | src/markov.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/markov.h b/src/markov.h index 2cb22ce..1c95775 100644 --- a/src/markov.h +++ b/src/markov.h @@ -11,8 +11,13 @@ extern int ITEMS; extern double chain[][ITEM_CAP]; extern char item_names[][64]; -void generate_chain(char *file_path) +void generate_chain() { + char *file_path = NULL; + #ifdef FILE_PATH + file_path = FILE_PATH; + #endif + FILE *fp = fopen(file_path, "r"); if(!fp) { fprintf(stderr, "ERROR: Could not open file %s\n", file_path); |