SDL_OpenUserStorage3
Opens up a container for a user's unique read/write filesystem.
Usage
#include "SDL3/SDL.h"
SDL_Storage * SDL_OpenUserStorage(const char *org, const char *app, SDL_PropertiesID props);
Header file
Defined in SDL3/SDL_storage.h
Overview
While title storage can generally be kept open throughout runtime, user storage should only be opened when the client is ready to read/write files. This allows the backend to properly batch file operations and flush them when the container has been closed; ensuring safe and optimal save I/O.
Function parameters
org
|
the name of your organization. |
|---|---|
app
|
the name of your application. |
props
|
a property list that may contain backend-specific information. |
Return value
( SDL_Storage
*) Returns a user storage container on success or NULL on failure; call SDL_GetError () for more information.