Query the size of a file within a storage container.
int SDL_StorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length);
storage | a storage container to query |
path | the relative path of the file to query |
length | a pointer to be filled with the file's length |
Returns 0 if the file could be queried, a negative value otherwise; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.