Rewrite raw memcard threading code. Intended to fix issue 7484.

EXI memcard code now doesn't know specifics of how data is flushed to whatever backing storage is used.
GC raw memcard now flushes every 15 seconds if dirty, and on memcard destruction.
GCI folder now flushes only on memcard destruction.
This commit is contained in:
Shawn Hoffman
2014-08-12 22:55:07 -07:00
parent 87c324c55a
commit bd7f856424
9 changed files with 235 additions and 198 deletions

View File

@ -63,7 +63,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
static std::thread g_save_thread;
// Don't forget to increase this after doing changes on the savestate system
static const u32 STATE_VERSION = 30;
static const u32 STATE_VERSION = 31;
enum
{