Moved command-line option handling out of the X11 driver.
Added support for "--" prefix on options.
Replaced a few X11 command-line options by wine.conf parameters.

diff --git a/misc/registry.c b/misc/registry.c
index f43e157..9330668 100644
--- a/misc/registry.c
+++ b/misc/registry.c
@@ -1561,7 +1561,6 @@
 
 void SHELL_LoadRegistry( void )
 {
-  int	save_timeout;
   char	*fn, *home;
   HKEY	hkey;
   char windir[MAX_PATHNAME_LEN];
@@ -1787,28 +1786,14 @@
       free (fn);
   }
   
-  /* 
-   * Make sure the update mode is there
-   */
-  if (ERROR_SUCCESS==RegCreateKey16(HKEY_CURRENT_USER,KEY_REGISTRY,&hkey)) 
-  {
-    DWORD	junk,type,len;
-    char	data[5];
+}
 
-    len=4;
-    if ((	RegQueryValueExA(
-            hkey,
-            VAL_SAVEUPDATED,
-            &junk,
-            &type,
-            data,
-            &len) != ERROR_SUCCESS) || (type != REG_SZ))
-    {
-      RegSetValueExA(hkey,VAL_SAVEUPDATED,0,REG_SZ,"yes",4);
-    }
+/* start the periodic saving timer */
+void SHELL_InitRegistrySaving(void)
+{
+  int	save_timeout;
 
-    RegCloseKey(hkey);
-  }
+  if (!CLIENT_IsBootThread()) return;
 
   if ((save_timeout = PROFILE_GetWineIniInt( "registry", "PeriodicSave", 0 )))
   {