diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-03-21 00:40:25 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-03-21 00:40:25 -0700 |
commit | f8d991fc1b1ab7ae0c3d8a0307b8b2419d152278 (patch) | |
tree | 6e096f49fe0a837e98c21550ab03d4e59fbb4e75 /util.h | |
parent | 7555497336ede90b9560d66684001c81902b01e1 (diff) |
Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,6 +21,8 @@ typedef struct { char * alloc_concat(char const * first, char const * second); //Allocates a new string containing the concatenation of the strings pointed to by parts char * alloc_concat_m(int num_parts, char const ** parts); +//Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment +char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); //Byteswaps a ROM image in memory void byteswap_rom(int filesize, uint16_t *cart); //Returns the size of a file using fseek and ftell |