SDL_GetStoragePathInfo(3)
π SDL_GetStoragePathInfo(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_GetStoragePathInfo π
β¨ NAME β¨
SDL_GetStoragePathInfo β get the tea β on a filesystem path inside a storage container. Like, what even is that path? Is it there? Is it not? We're finding out.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_storage.h>
bool SDL_GetStoragePathInfo(SDL_Storage *storage, const char *path, SDL_PathInfo *info);
π FUNCTION PARAMETERS π
storageβ a storage container. yeah. the container. the place where the stuff lives. that one π«Άpathβ the path you wanna interrogate. ask it questions. it's the path to query, bestie.infoβ a pointer that gets filled in with info about the path. orNULLif you literally just wanna check whether a file exists. lowkey the laziest possible query and honestly? valid.
π RETURN VALUE π
Returns true on success, or false if the file doesn't exist β or if something else went wrong, because of course something else can go wrong π
If you're getting false and you're like "but WHY though", call SDL_GetError() for more information. it'll tell you. it always tells you. not me checking the error string every single time π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older, no it isn't, and that's the vibe check result π
π¦ SEE ALSO π¦
and that's the whole page, no cap π go forth and query your paths, icon queen π
Simple Directmedia Layer β SDL 3.4.18 β SDL_GetStoragePathInfo(3), signing off πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms