Common directory functions. More...
#include <stdbool.h>
Functions | |
bool | createDirectory (const char *path) |
Creates a new directory, if it do not already exist. (MT-Safe) | |
bool | isDirectoryExists (const char *path) |
Returns true if directory exists. (MT-Safe) | |
char * | getDataDirectory (bool isShared) |
Returns application data directory. (MT-Safe) | |
char * | getAppDataDirectory (const char *appName, bool isShared) |
Returns application data directory + name. (MT-Safe) | |
char * | getResourcesDirectory () |
Returns bundled resources directory. (MT-Safe) | |
Common directory functions.
bool createDirectory | ( | const char * | path | ) |
Creates a new directory, if it do not already exist. (MT-Safe)
[in] | path | target directory path string |
bool isDirectoryExists | ( | const char * | path | ) |
Returns true if directory exists. (MT-Safe)
[in] | path | target directory path string |
char * getDataDirectory | ( | bool | isShared | ) |
Returns application data directory. (MT-Safe)
The resulting path can be used to store data between application runs, saves, downloaded updates.
isShared | is data directory shared between multiple users |
char * getAppDataDirectory | ( | const char * | appName, |
bool | isShared ) |
Returns application data directory + name. (MT-Safe)
The resulting path can be used to store data between application runs, saves, downloaded updates.
[in] | appName | target application name string |
isShared | is data directory shared between multiple users |
char * getResourcesDirectory | ( | ) |
Returns bundled resources directory. (MT-Safe)
This function returns the path to the resources within the built application. It is needed on macOS, iOS, Android to load bundled resources at runtime.