main.cpp: Synchronise the file only when exiting or changing ROMs, not when auto-saving 1 second after an SRAM change.