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 - Add flush to SDL_rwops
Summary: Add flush to SDL_rwops
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 API change
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-11 15:32 UTC by Rainer Deyke
Modified: 2020-03-11 15:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?