SDL_RenameStoragePath(3)
π SDL_RenameStoragePath(3) π
okay so bestie, this one lives in the SDL3 FUNCTIONS section of the manual, and it's literally about renaming stuff inside a writable storage container. no cap.
β¨ NAME β¨
SDL_RenameStoragePath β rename a file or a directory in a writable storage container. yes, directories too, she's flexible π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_storage.h>
bool SDL_RenameStoragePath(SDL_Storage *storage, const char *oldpath, const char *newpath);
π FUNCTION PARAMETERS π
storageβ a storage container. the little home where all your files live πoldpathβ the old path. the name she had before πnewpathβ the new path. the glow-up name β¨
π RETURN VALUE π
Returns true on success or false on failure. and if it fails? call SDL_GetError() for more info, because she will tell you what went wrong, fr fr π
β AVAILABILITY β
This function is available since SDL 3.2.0. she's been around, she's iconic π
π«Ά SEE ALSO π«Ά
lowkey reminder: if you're renaming things you probably want to make sure the storage is actually ready first. just saying. iykyk π
that's the whole page, bestie β Simple Directmedia Layer, SDL 3.4.18, and this lil legend of a manpage is dated with all the love in the world. go rename something cute πβ¨π
π¦ 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