SDL_RemoveStoragePath(3)

πŸ’… SDL_RemoveStoragePath πŸ’…

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_RemoveStoragePath πŸŽ€


✨ NAME ✨

SDL_RemoveStoragePath β€” Remove a file or an empty directory in a writable storage container.

like, it deletes stuff. that's the vibe. but read the whole thing before you go feral, okay?? 🫢


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_storage.h>

bool SDL_RemoveStoragePath(SDL_Storage *storage, const char *path);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • storage β€” a storage container. literally just hand it the storage container you want to mess with, queen πŸ‘‘
  • path β€” the path to remove from the filesystem. that's the thing getting yeeted πŸ™ˆ

πŸ’– RETURN VALUE πŸ’–

Returns true on success or false on failure. and if it's giving failure energy, call SDL_GetError() for more information β€” it will spill the tea on what went wrong, no cap 😭


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on something older, bestie, it's simply not there πŸ’€


🌈 SEE ALSO 🌈


lowkey important reminder: it removes a file or an empty directory. an EMPTY directory. don't come for me when a full one doesn't budge, i'm just the messenger 🧚

and that's the whole page, periodt. this lil slice of wisdom comes to you straight from Simple Directmedia Layer, running the SDL 3.4.18 era, and yeah the page is literally called SDL_RemoveStoragePath(3) in case you forgot already πŸ’œ byeeeee πŸ’…βœ¨

πŸ“¦ where this page comes from