21 #include "../../SDL_internal.h"
23 #ifdef SDL_FILESYSTEM_HAIKU
28 #include <os/kernel/image.h>
29 #include <os/storage/Directory.h>
30 #include <os/storage/Entry.h>
31 #include <os/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/";
84 SDL_snprintf(retval, len,
"%s%s%s/%s/", home, append, org, app);
85 create_directory(retval, 0700);
#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.