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.9 by gbeauche, 2005-03-28T09:05:28Z vs.
Revision 1.10 by cebix, 2005-11-24T17:26:00Z

# Line 107 | Line 107 | void AddPlatformPrefsDefaults(void)
107          PrefsReplaceInt32("mousewheelmode", 1);
108          PrefsReplaceInt32("mousewheellines", 3);
109   #ifdef __linux__
110 <        if (access("/dev/.devfsd", F_OK) < 0) {
111 <                PrefsReplaceString("dsp", "/dev/dsp");
112 <                PrefsReplaceString("mixer", "/dev/mixer");
113 <        } else {
110 >        if (access("/dev/sound/dsp", F_OK) == 0) {
111                  PrefsReplaceString("dsp", "/dev/sound/dsp");
112 +        } else {
113 +                PrefsReplaceString("dsp", "/dev/dsp");
114 +        }
115 +        if (access("/dev/sound/mixer", F_OK) == 0) {
116                  PrefsReplaceString("mixer", "/dev/sound/mixer");
117 +        } else {
118 +                PrefsReplaceString("mixer", "/dev/mixer");
119          }
120   #else
121          PrefsReplaceString("dsp", "/dev/dsp");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines