+ default_protocol = DEFAULT_PROTOCOL;
+ default_port = DEFAULT_PORT;
+ flags = FLAG_INTERACTIVE;
+
+ /*
+ * Really grotty hack to ensure that anything that looks at the
+ * global "cfg" variable gets something vaguely sensible.
+ * Obviously, nothing should actually be using it, but that will
+ * take a while to arrange.
+ */
+ do_defaults(NULL, &cfg);
+
+ {
+ short vol;
+ long dirid;
+
+ /* Set the default directory for loading and saving settings. */
+ /* XXX Should we create it? */
+ if (get_session_dir(FALSE, &vol, &dirid) == noErr) {
+ LMSetSFSaveDisk(-vol);
+ LMSetCurDirStore(dirid);
+ }
+ }