Mercurial > repos > blastem
comparison util.h @ 2158:bdd83b47d78a
Implement config file migrations and add iso and cue to extension list
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 24 May 2022 09:10:54 -0700 |
parents | 237068a25523 |
children | 794ba17f0716 |
comparison
equal
deleted
inserted
replaced
2157:da7890445962 | 2158:bdd83b47d78a |
---|---|
20 | 20 |
21 //Allocates a new string containing the concatenation of first and second | 21 //Allocates a new string containing the concatenation of first and second |
22 char * alloc_concat(char const * first, char const * second); | 22 char * alloc_concat(char const * first, char const * second); |
23 //Allocates a new string containing the concatenation of the strings pointed to by parts | 23 //Allocates a new string containing the concatenation of the strings pointed to by parts |
24 char * alloc_concat_m(int num_parts, char const ** parts); | 24 char * alloc_concat_m(int num_parts, char const ** parts); |
25 //Allocates a new string containing the concatenation of the strings pointed to by parts separated by sep | |
26 char * alloc_join(int num_parts, char const **parts, char sep); | |
25 //Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment | 27 //Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment |
26 char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); | 28 char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); |
27 //Byteswaps a ROM image in memory | 29 //Byteswaps a ROM image in memory |
28 void byteswap_rom(int filesize, uint16_t *cart); | 30 void byteswap_rom(int filesize, uint16_t *cart); |
29 //Returns the size of a file using fseek and ftell | 31 //Returns the size of a file using fseek and ftell |