SDL_HINT_STORAGE_USER_DRIVER(3)

πŸ’– SDL_HINT_STORAGE_USER_DRIVER(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS manual page for SDL_HINT_STORAGE_USER_DRIVER(3) β€” yes the name is a whole mouthful, but it's actually so useful, fr fr. 🫢


✨ NAME ✨

  • SDL_HINT_STORAGE_USER_DRIVER β€” a variable that specifies a backend to use for user storage. like, it's the hint that tells SDL where to put your user data. iconic behavior tbh. πŸ’…

🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_STORAGE_USER_DRIVER "SDL_STORAGE_USER_DRIVER"

πŸ¦‹ DESCRIPTION πŸ¦‹

By default, SDL will try all available storage backends in a reasonable order until it finds one that can work. no cap. but this hint lets the app or the user force a specific target, like "pc" if β€” say β€” you're on Steam but you want to avoid SteamRemoteStorage for user data. it's giving "I know what I want and I'm not settling." πŸ’…

This hint should be set before SDL is initialized. don't wait until after, bestie, that's not the vibe. πŸ™ˆ

πŸ‘‘ AVAILABILITY πŸ‘‘

This hint is available since SDL 3.2.0. so if you're on an older version, it's a no from her. πŸ’€


πŸ’– xoxo, your fave manual page β€” from Simple Directmedia Layer, version SDL 3.4.18, SDL_HINT_STORAGE_USER_DRIVER(3) πŸŽ€βœ¨

πŸ“¦ where this page comes from