Mercurial > repos > blastem
comparison util.h @ 2425:794ba17f0716
Make termhelper work when current working directory is not the one that contains blastem
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 24 Jan 2024 20:18:17 -0800 |
parents | bdd83b47d78a |
children | c4256ce2c45a |
comparison
equal
deleted
inserted
replaced
2424:767ec72acca7 | 2425:794ba17f0716 |
---|---|
64 char * get_home_dir(); | 64 char * get_home_dir(); |
65 //Returns an appropriate path for storing config files | 65 //Returns an appropriate path for storing config files |
66 char const *get_config_dir(); | 66 char const *get_config_dir(); |
67 //Returns an appropriate path for saving non-config data like savestates | 67 //Returns an appropriate path for saving non-config data like savestates |
68 char const *get_userdata_dir(); | 68 char const *get_userdata_dir(); |
69 //Returns the path of a file bundled with the executable | |
70 char *bundled_file_path(char *name); | |
69 //Reads a file bundled with the executable | 71 //Reads a file bundled with the executable |
70 char *read_bundled_file(char *name, uint32_t *sizeret); | 72 char *read_bundled_file(char *name, uint32_t *sizeret); |
71 //Retunrs an array of normal files and directories residing in a directory | 73 //Retunrs an array of normal files and directories residing in a directory |
72 dir_entry *get_dir_list(char *path, size_t *numret); | 74 dir_entry *get_dir_list(char *path, size_t *numret); |
73 //Frees a dir list returned by get_dir_list | 75 //Frees a dir list returned by get_dir_list |