rewrite gpathtable and path resolution

This commit is contained in:
Ondřej Novák 2025-01-30 22:39:52 +01:00
parent ccebc91f0d
commit 4a0c7d4fd0
125 changed files with 889 additions and 901 deletions

View file

@ -7,7 +7,7 @@
#define BGSWITCHBIT 0x0020
#define SKELDALINI "wskeldal.ini"
#define SKELDALINI "skeldal.ini"
#ifdef __cplusplus
extern "C"
@ -27,6 +27,21 @@ uint32_t _bios_keybrd(int mode);
#define RGB555(r,g,b) ((unsigned short)(((r)<<11) | ((g)<<6) | (b)))
///build pathname from parts
/**
* @param nparts count of parts (must be > 0)
* @param part first part
* @return complete path - statically allocated buffer
*/
const char * build_pathname(size_t nparts, const char *part1, ...);
///creates directories recursively
/**
* @param path path
* @retval 1 success
* @retval 0 failure
*/
char create_directories(const char *path);
void *map_file_to_memory(const char *name, size_t *sz);