diff --git a/apps/plugins/doom/m_misc.c b/apps/plugins/doom/m_misc.c index 43e2a3888b..d3e6098b5d 100644 --- a/apps/plugins/doom/m_misc.c +++ b/apps/plugins/doom/m_misc.c @@ -797,11 +797,16 @@ int numdefaults; void M_SaveDefaults (void) { int i,fd; + uint32_t magic = DOOM_CONFIG_MAGIC; + uint32_t ver = DOOM_CONFIG_VERSION; fd = open (GAMEBASE"default.dfg", O_WRONLY|O_CREAT|O_TRUNC); if (fd<0) return; // can't write the file, but don't complain + write(fd,&magic,sizeof(magic)); + write(fd,&ver,sizeof(ver)); + for (i=0 ; i