23 #ifdef SDL_FILESYSTEM_BEOS
28 #include <os/kernel/image.h>
29 #include <os/storage/Directory.h>
30 #include <os/storage/Entry.h>
31 #include <os/storage/Path.h>
34 #include "SDL_stdinc.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/";
85 create_directory(retval, 0700);
DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt,...)
DECLSPEC char *SDLCALL SDL_GetPrefPath(const char *org, const char *app)
Get the user-and-app-specific path where files can be written.
GLsizei const GLchar *const * path
DECLSPEC void *SDLCALL SDL_malloc(size_t size)
#define SDL_assert(condition)
DECLSPEC size_t SDLCALL SDL_strlen(const char *str)
#define SDL_OutOfMemory()
DECLSPEC void *SDLCALL SDL_memcpy(void *dst, const void *src, size_t len)
Include file for filesystem SDL API functions.
DECLSPEC char *SDLCALL SDL_getenv(const char *name)
DECLSPEC char *SDLCALL SDL_GetBasePath(void)
Get the path where the application resides.