remove the assumption that game is ran from cwd at root

This commit is contained in:
2024-10-07 13:22:25 +03:00
parent 6cbfc8a5fb
commit 93aa8ff2b4
5 changed files with 37 additions and 10 deletions

View File

@ -21,6 +21,8 @@ typedef struct EngineContext {
/* the program's actual argc and argv */
int argc;
char **argv;
/* where the app was run from, used as the root for packs */
char *base_dir;
/* configuration */
toml_table_t *config_table;