ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/prefs_unix.cpp
(Generate patch)

Comparing SheepShaver/src/Unix/prefs_unix.cpp (file contents):
Revision 1.2 by gbeauche, 2003-11-21T17:01:33Z vs.
Revision 1.8 by gbeauche, 2005-01-30T21:48:20Z

# Line 1 | Line 1
1   /*
2   *  prefs_unix.cpp - Preferences handling, Unix specific things
3   *
4 < *  SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig
4 > *  SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 29 | Line 29
29  
30   // Platform-specific preferences items
31   prefs_desc platform_prefs_items[] = {
32 <        {"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"},
33 <        {"keycodes", TYPE_BOOLEAN, false, "use keycodes rather than keysyms to decode keyboard"},
34 <        {"keycodefile", TYPE_STRING, false, "path of keycode translation file"},
32 >        {"ether", TYPE_STRING, false,          "device name of Mac ethernet adapter"},
33 >        {"etherconfig", TYPE_STRING, false,    "path of network config script"},
34 >        {"keycodes", TYPE_BOOLEAN, false,      "use keycodes rather than keysyms to decode keyboard"},
35 >        {"keycodefile", TYPE_STRING, false,    "path of keycode translation file"},
36 >        {"mousewheelmode", TYPE_INT32, false,  "mouse wheel support mode (0=page up/down, 1=cursor up/down)"},
37 >        {"mousewheellines", TYPE_INT32, false, "number of lines to scroll in mouse wheel mode 1"},
38 >        {"dsp", TYPE_STRING, false,            "audio output (dsp) device name"},
39 >        {"mixer", TYPE_STRING, false,          "audio mixer device name"},
40 > #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
41 >        {"ignoresegv", TYPE_BOOLEAN, false,    "ignore illegal memory accesses"},
42 > #endif
43 >        {"idlewait", TYPE_BOOLEAN, false,      "sleep when idle"},
44          {NULL, TYPE_END, false, NULL} // End of list
45   };
46  
# Line 95 | Line 104 | void AddPlatformPrefsDefaults(void)
104   {
105          PrefsAddBool("keycodes", false);
106          PrefsReplaceString("extfs", "/");
107 +        PrefsReplaceInt32("mousewheelmode", 1);
108 +        PrefsReplaceInt32("mousewheellines", 3);
109          PrefsAddInt32("windowmodes", 3);
110          PrefsAddInt32("screenmodes", 0x3f);
111 + #ifdef __linux__
112 +        if (access("/dev/.devfsd", F_OK) < 0) {
113 +                PrefsReplaceString("dsp", "/dev/dsp");
114 +                PrefsReplaceString("mixer", "/dev/mixer");
115 +        } else {
116 +                PrefsReplaceString("dsp", "/dev/sound/dsp");
117 +                PrefsReplaceString("mixer", "/dev/sound/mixer");
118 +        }
119 + #else
120 +        PrefsReplaceString("dsp", "/dev/dsp");
121 +        PrefsReplaceString("mixer", "/dev/mixer");
122 + #endif
123 + #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
124 +        PrefsAddBool("ignoresegv", false);
125 + #endif
126 +        PrefsAddBool("idlewait", true);
127   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines