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