libobs/util: Add os_quick_write_utf8_file_safe
This helper function saves to a temporary file first, (optionally) backs up the original file, then renames the temporary file to the actual file name. This helps reduce the chance of file corruption under various circumstances (such as shutdown or crash while the file is being written to disk).
Showing
想要评论请 注册 或 登录