--- SheepShaver/src/Unix/prefs_unix.cpp 2004/05/15 16:36:43 1.7 +++ SheepShaver/src/Unix/prefs_unix.cpp 2008/01/01 09:47:38 1.11 @@ -1,7 +1,7 @@ /* * prefs_unix.cpp - Preferences handling, Unix specific things * - * SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig + * SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -106,15 +106,16 @@ void AddPlatformPrefsDefaults(void) PrefsReplaceString("extfs", "/"); PrefsReplaceInt32("mousewheelmode", 1); PrefsReplaceInt32("mousewheellines", 3); - PrefsAddInt32("windowmodes", 3); - PrefsAddInt32("screenmodes", 0x3f); #ifdef __linux__ - if (access("/dev/.devfsd", F_OK) < 0) { - PrefsReplaceString("dsp", "/dev/dsp"); - PrefsReplaceString("mixer", "/dev/mixer"); - } else { + if (access("/dev/sound/dsp", F_OK) == 0) { PrefsReplaceString("dsp", "/dev/sound/dsp"); + } else { + PrefsReplaceString("dsp", "/dev/dsp"); + } + if (access("/dev/sound/mixer", F_OK) == 0) { PrefsReplaceString("mixer", "/dev/sound/mixer"); + } else { + PrefsReplaceString("mixer", "/dev/mixer"); } #else PrefsReplaceString("dsp", "/dev/dsp");