summaryrefslogtreecommitdiff
path: root/src/i_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_system.c')
-rw-r--r--src/i_system.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/i_system.c b/src/i_system.c
index bf8daa3a..4f1bdac3 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -106,6 +106,7 @@ byte *I_ZoneBase (int *size)
//
void I_Init (void)
{
+ I_CheckIsScreensaver();
I_InitSound();
I_InitMusic();
I_InitTimer();
@@ -164,10 +165,15 @@ void I_Quit (void)
G_CheckDemoStatus();
I_ShutdownSound();
I_ShutdownMusic();
- M_SaveDefaults ();
+
+ if (!screensaver_mode)
+ {
+ M_SaveDefaults ();
+ }
+
I_ShutdownGraphics();
- if (show_endoom && !testcontrols)
+ if (show_endoom && !testcontrols && !screensaver_mode)
{
I_Endoom();
}