Information about a LICK directory. More...
Go to the source code of this file.
Data Structures | |
struct | lickdir_t |
Paths to the LICK directory and its components. More... | |
Functions | |
lickdir_t * | new_lickdir (char drive, char *entry, char *res) |
create a new lickdir_t, with the given attributes More... | |
void | free_lickdir (lickdir_t *l) |
free the memory a lickdir_t is using More... | |
lickdir_t * | get_lickdir () |
returns a suitable LICK directory More... | |
Information about a LICK directory.
LICK directories should be found on the root of a drive. Inside, there are a few subdirectories - to allow flexibility with the names of these folders, they are stored in a lickdir_t structure.
void free_lickdir | ( | lickdir_t * | l | ) |
lickdir_t* get_lickdir | ( | ) |
returns a suitable LICK directory
Looks at the path to the binary currently being run, and determines if a res directory exists. If so, returns a lickdir_t corresponding to the directory. If not, returns NULL. This is to prevent later errors while installing the loader, and to prevent users from running an interface alone, for example directly from a zip file
lickdir_t* new_lickdir | ( | char | drive, |
char * | entry, | ||
char * | res | ||
) |
create a new lickdir_t, with the given attributes
Each parameter must be allocated on the heap. The parameters are no longer valid after the call, and must not be freed
drive | the drive to install the boot loader to |
entry | the entry subdirectory |
res | the resource subdirectory |