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-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 |
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"); |