Saves NVR on exit, fatal, and before any kind of menu or configuration change triggered reset, rather than every second. Should improve performance and reduce disk writes.

This commit is contained in:
OBattler
2016-07-11 06:48:06 +02:00
parent 289f3fe96a
commit c972a253ea
4 changed files with 5 additions and 2 deletions

View File

@@ -91,6 +91,7 @@ void fatal(const char *format, ...)
vprintf(format, ap);
va_end(ap);
fflush(stdout);
savenvr();
dumppic();
dumpregs();
fflush(stdout);