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.1 by cebix, 2002-02-04T16:58:13Z vs.
Revision 1.4 by gbeauche, 2003-12-27T10:37:30Z

# 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"},
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"},
35 >        {"mousewheelmode", TYPE_INT32, false,  "mouse wheel support mode (0=page up/down, 1=cursor up/down)"},
36 >        {"mousewheellines", TYPE_INT32, false, "number of lines to scroll in mouse wheel mode 1"},
37 >        {"dsp", TYPE_STRING, false,            "audio output (dsp) device name"},
38 >        {"mixer", TYPE_STRING, false,          "audio mixer device name"},
39 > #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
40 >        {"ignoresegv", TYPE_BOOLEAN, false,    "ignore illegal memory accesses"},
41 > #endif
42          {NULL, TYPE_END, false, NULL} // End of list
43   };
44  
# Line 91 | Line 100 | void SavePrefs(void)
100  
101   void AddPlatformPrefsDefaults(void)
102   {
103 +        PrefsAddBool("keycodes", false);
104          PrefsReplaceString("extfs", "/");
105 +        PrefsReplaceInt32("mousewheelmode", 1);
106 +        PrefsReplaceInt32("mousewheellines", 3);
107          PrefsAddInt32("windowmodes", 3);
108          PrefsAddInt32("screenmodes", 0x3f);
109 + #ifdef __linux__
110 +        if (access("/dev/.devfsd", F_OK) < 0) {
111 +                PrefsReplaceString("dsp", "/dev/dsp");
112 +                PrefsReplaceString("mixer", "/dev/mixer");
113 +        } else {
114 +                PrefsReplaceString("dsp", "/dev/sound/dsp");
115 +                PrefsReplaceString("mixer", "/dev/sound/mixer");
116 +        }
117 + #else
118 +        PrefsReplaceString("dsp", "/dev/dsp");
119 +        PrefsReplaceString("mixer", "/dev/mixer");
120 + #endif
121 + #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
122 +        PrefsAddBool("ignoresegv", false);
123 + #endif
124   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines