Scroll to navigation

SDL_OpenFileStorage(3) SDL3 FUNCTIONS SDL_OpenFileStorage(3)

NAME

SDL_OpenFileStorage - Opens up a container for local filesystem storage.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_Storage* SDL_OpenFileStorage(const char *path);

DESCRIPTION

This is provided for development and tools. Portable applications should use SDL_OpenTitleStorage () for access to game data and SDL_OpenUserStorage () for access to user data.

FUNCTION PARAMETERS

the base path prepended to all storage paths, or NULL for no base path

RETURN VALUE

Returns a filesystem storage container on success or NULL on failure; call

SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_CloseStorage(3), SDL_GetStorageFileSize(3), SDL_GetStorageSpaceRemaining(3), SDL_OpenTitleStorage(3), SDL_OpenUserStorage(3), SDL_ReadStorageFile(3), SDL_WriteStorageFile(3)

SDL 3.1.0 SDL