Dentomologist 1734cf55d8 Fix file rename errors on Windows
On Windows, when the Rename function fails to replace an existing file
it will now retry the operation multiple times with increasingly long
delays between attempts.  This fixes transient rename failures.

I've been getting sporadic yet annoyingly frequent errors saying:
'IOS_FS: Failed to rename temporary FST file'
These typically appear on startup but I've also gotten them randomly.

Investigation shows this happens when the Windows ReplaceFile function
returns the error ERROR_UNABLE_TO_REMOVE_REPLACED.  That happens in the
context of using ReplaceFile to perform an atomic file overwrite, which
is required when saving updates to a file to avoid corruption.  The
error mainly happens with the /Wii/fst.bin file but I've seen it
happen with multiple other files as well.

I haven't been able to definitively pin down why the error occurs,
though online discussions suggest antivirus scanning may be a major
culprit.  That said, I've excluded the Dolphin folder from Windows
Defender scans to no avail and don't have any other antivirus running,
so this is likely to be a problem others are experiencing as well.

The number and duration of retry delays is arbitrary but I feel like a
combined second or so in the worst case is an acceptable tradeoff for
the reduction (actually elimination in my experience) of those errors.
This is even more true when you consider the time it takes to read and
dismiss the error dialogs.
2020-11-25 16:12:58 -08:00
..
2020-05-13 20:53:10 +02:00
2020-10-21 07:35:42 -04:00
2020-10-23 14:58:03 -04:00
2016-12-06 20:33:53 +01:00
2020-08-27 21:54:04 +01:00
2020-05-13 20:53:10 +02:00
2018-10-28 17:57:46 +00:00
2018-05-27 18:48:09 -04:00
2020-05-13 20:53:10 +02:00
2019-10-07 22:46:36 +02:00
2020-05-03 20:48:30 +04:00
2018-09-29 22:52:29 -07:00
2020-11-25 16:12:58 -08:00
2018-04-12 21:28:39 +02:00
2018-08-13 12:17:56 -07:00
2020-07-24 15:06:39 -07:00
2020-07-24 15:06:39 -07:00
2020-05-13 20:53:10 +02:00
2018-04-12 21:28:39 +02:00
2019-05-06 18:48:04 +00:00
2019-06-14 15:04:09 -04:00
2016-07-16 22:48:46 +02:00
2020-10-23 14:58:03 -04:00
2020-10-23 14:58:03 -04:00
2019-06-14 15:04:09 -04:00
2019-04-08 07:06:21 -04:00
2018-04-12 21:28:39 +02:00
2018-05-31 17:54:43 +02:00
2018-04-12 21:28:39 +02:00
2020-10-23 14:58:03 -04:00
2018-05-11 09:19:30 -04:00
2018-10-02 05:44:50 -04:00
2018-10-02 05:44:50 -04:00
2020-10-23 14:58:03 -04:00
2020-10-23 14:58:03 -04:00
2020-10-23 14:58:03 -04:00
2019-05-06 18:48:04 +00:00
2020-08-22 17:22:07 -07:00
2020-10-23 14:58:03 -04:00