We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5024

Summary: Add flush to SDL_rwops
Product: SDL Reporter: Rainer Deyke <rainerd>
Component: fileAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Linux   

Description Rainer Deyke 2020-03-11 15:32:58 UTC
I am using SDL_RWops for a log file.  This works fine for most cases, but if my program crashes with the log file open, the resulting log file is truncated because the file hasn't been flushed to the disk.  Would it be possible to add a flush function to SDL_RWops so that I can manually flush my log file to disk?