aboutsummaryrefslogtreecommitdiff
path: root/src/markov.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-14 18:17:46 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-14 18:17:46 +0300
commit6516b26acec2abd862a3c1f42886e749e2dfad5c (patch)
treecfa5c121f37c5c9e6a1cc1b8c604e09ec35dc697 /src/markov.h
parent3ca0ae80729086a7e483d1eddf8bdbbb46582c29 (diff)
a little bit more user friendly
Diffstat (limited to 'src/markov.h')
-rw-r--r--src/markov.h7
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);