From be285b6acae8c17505ff945319ab0ba10ea8a81b Mon Sep 17 00:00:00 2001 From: hunterk Date: Sun, 2 Dec 2018 20:23:36 -0600 Subject: [PATCH] set a default SRAM autosave interval on modern platforms --- config.def.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.def.h b/config.def.h index 546e7bebfd..50126da58c 100644 --- a/config.def.h +++ b/config.def.h @@ -536,7 +536,13 @@ static const bool pause_nonactive = true; /* Saves non-volatile SRAM at a regular interval. * It is measured in seconds. A value of 0 disables autosave. */ +#if defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_WIN32) || defined(OSX) || defined(ANDROID) || defined(IOS) +/* Flush to file every 10 seconds on modern platforms by default */ +static const unsigned autosave_interval = 10; +#else +/* Default to disabled on I/O-constrained platforms */ static const unsigned autosave_interval = 0; +#endif /* Publicly announce netplay */ static const bool netplay_public_announce = true;