SDL_OpenFileStorage - Man Page

Opens up a container for local filesystem storage.

Header File

Defined in SDL3/SDL_storage.h

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

path

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

Return Value

( SDL_Storage
*) 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

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

Referenced By

SDL_CloseStorage(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS