comparison util.h @ 2682:143cb5762ec9

Fix generating shader list on Android
author Michael Pavone <pavone@retrodev.com>
date Wed, 26 Mar 2025 22:30:22 -0700
parents c4256ce2c45a
children
comparison
equal deleted inserted replaced
2681:c4256ce2c45a 2682:143cb5762ec9
68 char const *get_userdata_dir(); 68 char const *get_userdata_dir();
69 //Returns the path of a file bundled with the executable 69 //Returns the path of a file bundled with the executable
70 char *bundled_file_path(char *name); 70 char *bundled_file_path(char *name);
71 //Reads a file bundled with the executable 71 //Reads a file bundled with the executable
72 char *read_bundled_file(char *name, uint32_t *sizeret); 72 char *read_bundled_file(char *name, uint32_t *sizeret);
73 //Retunrs an array of normal files and directories residing in a directory 73 //Returns an array of normal files and directories residing in a directory
74 dir_entry *get_dir_list(char *path, size_t *numret); 74 dir_entry *get_dir_list(char *path, size_t *numret);
75 //Returns an array of normal files and directories residing in a bundled directory
76 dir_entry *get_bundled_dir_list(char *name, size_t *num_out);
75 //Frees a dir list returned by get_dir_list 77 //Frees a dir list returned by get_dir_list
76 void free_dir_list(dir_entry *list, size_t numentries); 78 void free_dir_list(dir_entry *list, size_t numentries);
77 //Performs a case-insensitive sort by file name on a dir list 79 //Performs a case-insensitive sort by file name on a dir list
78 void sort_dir_list(dir_entry *list, size_t num_entries); 80 void sort_dir_list(dir_entry *list, size_t num_entries);
79 //Gets the modification time of a file 81 //Gets the modification time of a file