QTfrontend/gameuiconfig.cpp
changeset 2443 fececcbc2189
parent 2395 d01d3bf3e1de
child 2531 c7f841eb91fb
--- a/QTfrontend/gameuiconfig.cpp	Wed Oct 14 16:30:41 2009 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Wed Oct 14 22:12:02 2009 +0000
@@ -48,7 +48,9 @@
 	Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool());
 	Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects);
 	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
+#ifdef _WIN32
 	Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool());
+#endif
 	Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
 	Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt());
 
@@ -120,7 +122,9 @@
 	}
 
 	setValue("audio/sound", isSoundEnabled());
+#ifdef _WIN32
 	setValue("audio/hardware", isSoundHardware());
+#endif
 	setValue("audio/music", isMusicEnabled());
 	setValue("audio/volume", Form->ui.pageOptions->volumeBox->value());
 
@@ -177,10 +181,12 @@
 	return Form->ui.pageOptions->CBEnableSound->isChecked();
 }
 
+#ifdef _WIN32
 bool GameUIConfig::isSoundHardware()
 {
 	return Form->ui.pageOptions->CBHardwareSound->isChecked();
 }
+#endif
 
 bool GameUIConfig::isMusicEnabled()
 {