mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 20:26:45 -04:00
rewrite gpathtable and path resolution
This commit is contained in:
parent
ccebc91f0d
commit
4a0c7d4fd0
125 changed files with 889 additions and 901 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue