logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_OpenUserStorage - Opens up a container for a user's unique read/write filesystem.

Availability

       This function is available since SDL 3.2.0.

Description

       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.

Header File

       Defined in SDL3/SDL_storage.h

Name

       SDL_OpenUserStorage - Opens up a container for a user's unique read/write filesystem.

Return Value

       ( SDL_Storage
        *)  Returns  a  user  storage  container  on  success  or NULL on failure; call SDL_GetError () for more
       information.

See Also

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

Simple Directmedia Layer                           SDL 3.2.10                             SDL_OpenUserStorage(3)

Synopsis

#include"SDL3/SDL.h"SDL_Storage*SDL_OpenUserStorage(constchar*org,constchar*app,SDL_PropertiesIDprops);

See Also