Mercurial > repos > blastem
comparison util.h @ 875:54ffba3768d6
Make menu stuff work on Android (theoretically)
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Nov 2015 22:03:34 -0800 |
parents | 69a6ec208111 |
children | 540cc4a7d626 |
comparison
equal
deleted
inserted
replaced
874:b6842dfb8edf | 875:54ffba3768d6 |
---|---|
26 void set_exe_str(char * str); | 26 void set_exe_str(char * str); |
27 //Returns the directory the executable is in | 27 //Returns the directory the executable is in |
28 char * get_exe_dir(); | 28 char * get_exe_dir(); |
29 //Returns the user's home directory | 29 //Returns the user's home directory |
30 char * get_home_dir(); | 30 char * get_home_dir(); |
31 //Returns an appropriate path for storing config files | |
32 char *get_config_dir(); | |
33 //Reads a file bundled with the executable | |
34 char *read_bundled_file(char *name, long *sizeret); | |
31 //Retunrs an array of normal files and directories residing in a directory | 35 //Retunrs an array of normal files and directories residing in a directory |
32 dir_entry *get_dir_list(char *path, size_t *numret); | 36 dir_entry *get_dir_list(char *path, size_t *numret); |
33 //Frees a dir list returned by get_dir_list | 37 //Frees a dir list returned by get_dir_list |
34 void free_dir_list(dir_entry *list, size_t numentries); | 38 void free_dir_list(dir_entry *list, size_t numentries); |
35 //Returns the contents of a symlink in a newly allocated string | 39 //Returns the contents of a symlink in a newly allocated string |