~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/Unix/prefs_unix.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
42
42
        {"ignoresegv", TYPE_BOOLEAN, false,    "ignore illegal memory accesses"},
43
43
#endif
 
44
        {"idlewait", TYPE_BOOLEAN, false,      "sleep when idle"},
44
45
        {NULL, TYPE_END, false, NULL} // End of list
45
46
};
46
47
 
108
109
        PrefsReplaceInt32("mousewheelmode", 1);
109
110
        PrefsReplaceInt32("mousewheellines", 3);
110
111
#ifdef __linux__
111
 
        if (access("/dev/.devfsd", F_OK) < 0) {
 
112
        if (access("/dev/sound/dsp", F_OK) == 0) {
 
113
                PrefsReplaceString("dsp", "/dev/sound/dsp");
 
114
        } else {
112
115
                PrefsReplaceString("dsp", "/dev/dsp");
 
116
        }
 
117
        if (access("/dev/sound/mixer", F_OK) == 0) {
 
118
                PrefsReplaceString("mixer", "/dev/sound/mixer");
 
119
        } else {
113
120
                PrefsReplaceString("mixer", "/dev/mixer");
114
 
        } else {
115
 
                PrefsReplaceString("dsp", "/dev/sound/dsp");
116
 
                PrefsReplaceString("mixer", "/dev/sound/mixer");
117
121
        }
118
122
#else
119
123
        PrefsReplaceString("dsp", "/dev/dsp");
122
126
#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
123
127
        PrefsAddBool("ignoresegv", false);
124
128
#endif
 
129
        PrefsAddBool("idlewait", true);
125
130
}