  	register int fd;
  #ifdef CHDIR
  	register char *dir;
-@@ -538,4 +542,472 @@
+@@ -538,4 +542,479 @@
  	return;
  }
  

--- /nethack-3.4.3/sys/unix/unixmain.c	2003-12-08 01:39:13.000000000 +0200
+++ unixmain.c	2013-04-09 18:49:36.430436395 +0300
@@ -44,11 +44,15 @@
 static boolean wiz_error_flag = FALSE;
 #endif

+        fprintf(f, "moMR = %d, ", pm->mr);
+        fprintf(f, "moAlign = %d, ", pm->maligntyp);
+        fprintf(f, "moGenerationPlaces = tail [Gehennom");
+        if (pm->geno & G_UNIQ)
+            fprintf(f, ", Unique");
+        else if (pm->geno & G_NOGEN)
+            fprintf(f, "");
+        else
+        {
+#ifdef G_SHEOLONLY
+            if (pm->geno & (G_SHEOLONLY & ~G_SHEOL))
+                fprintf(f, ", Sheol");
+            else
+            {
+                if (pm->geno & G_SHEOL) fprintf(f, ", Sheol");
+#endif
+                if (!(pm->geno & G_NOHELL)) fprintf(f, ", Gehennom");
+                if (!(pm->geno & G_HELL)) fprintf(f, ", Dungeons");
+#ifdef G_SHEOLONLY
+            }
+#endif
+        }
+        fprintf(f, "], ");
+        fprintf(f, "moLeavesCorpse = %s, ",
+                (pm->geno & G_NOCORPSE) ? "False" : "True");
