21 #include "../../SDL_internal.h"
23 #ifdef SDL_FILESYSTEM_HAIKU
28 #include <kernel/image.h>
29 #include <storage/Directory.h>
30 #include <storage/Entry.h>
31 #include <storage/Path.h>
44 while (get_next_image_info(0, &cookie, &info) == B_OK) {
45 if (info.type == B_APP_IMAGE) {
50 BEntry entry(info.name,
true);
52 status_t rc = entry.GetPath(&path);
54 rc = path.GetParent(&path);
56 const char *str = path.Path();
78 const char *append =
"/config/settings/";
89 if (!len || (home[len - 1] ==
'/')) {
98 SDL_snprintf(retval, len,
"%s%s%s/%s/", home, append, org, app);
100 SDL_snprintf(retval, len,
"%s%s%s/", home, append, app);
102 create_directory(retval, 0700);
#define SDL_InvalidParamError(param)
#define SDL_assert(condition)
#define SDL_OutOfMemory()
Include file for filesystem SDL API functions.
GLsizei const GLchar *const * path
char * SDL_GetBasePath(void)
Get the path where the application resides.