SDL_OpenFileStorage - Man Page

Opens up a container for local filesystem storage.

Synopsis

#include <SDL3/SDL_storage.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

path

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.2.0.

See Also

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

Referenced By

SDL_CloseStorage(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS