Mercurial > repos > blastem
diff util.h @ 1295:96ad1b9bbb3a
Make save directory configurable. Satisfies ticket:4
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 Mar 2017 21:40:47 -0700 |
parents | 5905593d6828 |
children | 5ceb316c479a |
line wrap: on
line diff
--- a/util.h Tue Mar 21 19:56:50 2017 -0700 +++ b/util.h Tue Mar 21 21:40:47 2017 -0700 @@ -3,6 +3,7 @@ #include <stdio.h> #include <time.h> +#include "tern.h" typedef struct { char *name; @@ -50,7 +51,7 @@ //Returns an appropriate path for storing config files char const *get_config_dir(); //Returns an appropriate path for saving non-config data like savestates -char const *get_save_dir(); +char const *get_userdata_dir(); //Reads a file bundled with the executable char *read_bundled_file(char *name, uint32_t *sizeret); //Retunrs an array of normal files and directories residing in a directory