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.7 by gbeauche, 2004-05-15T16:36:43Z vs.
Revision 1.11 by gbeauche, 2008-01-01T09:47:38Z

# Line 1 | Line 1
1   /*
2   *  prefs_unix.cpp - Preferences handling, Unix specific things
3   *
4 < *  SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig
4 > *  SheepShaver (C) 1997-2008 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 106 | Line 106 | void AddPlatformPrefsDefaults(void)
106          PrefsReplaceString("extfs", "/");
107          PrefsReplaceInt32("mousewheelmode", 1);
108          PrefsReplaceInt32("mousewheellines", 3);
109        PrefsAddInt32("windowmodes", 3);
110        PrefsAddInt32("screenmodes", 0x3f);
109   #ifdef __linux__
110 <        if (access("/dev/.devfsd", F_OK) < 0) {
113 <                PrefsReplaceString("dsp", "/dev/dsp");
114 <                PrefsReplaceString("mixer", "/dev/mixer");
115 <        } 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