SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_OpenFileStorage

Opens up a container for local filesystem storage.

Header File

Defined in <SDL3/SDL_storage.h>

Syntax

SDL_Storage* SDL_OpenFileStorage(const char *path);

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.

Remarks

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.

Version

This function is available since SDL 3.0.0.

See Also


CategoryAPI, CategoryAPIFunction


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.