Write config files automatically (or periodically) at runtime
To avoid losing your config in case of a crash, config files (persist.pack and .cfg files) should be written whenever changes occur in the configuration. This could be done via a periodical check.
libdoomsday|Client|Server: Autosave .cfg files after cvars changed
Client|Server|libcore: Rewrite “persist.pack” periodically (if changed)
Records can be queried whether their members have changed their values.