X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=a0fa9b60c4048bbd5e7e59ce97c045ec190f8c04;hb=ca6061cbffe88ff5eb2332e733e0a534b89cc5e7;hp=4a6d7f0403672fecb392d5999c1b9318b452d2b2;hpb=4d04bc8a6c2d5e410d519b25164613c5e5c2d160;p=xboard.git diff --git a/xboard.c b/xboard.c index 4a6d7f0..a0fa9b6 100644 --- a/xboard.c +++ b/xboard.c @@ -7200,6 +7200,7 @@ PlaySound(name) } else { char buf[2048]; char *prefix = "", *sep = ""; + if(appData.soundProgram[0] == NULLCHAR) return; if(!strchr(name, '/')) { prefix = appData.soundDirectory; sep = "/"; } snprintf(buf, sizeof(buf), "%s '%s%s%s' &", appData.soundProgram, prefix, sep, name); system(buf); @@ -8225,6 +8226,12 @@ FrameDelay (time) #endif +void +DoSleep(int n) +{ + FrameDelay(n); +} + /* Convert board position to corner of screen rect and color */ static void