QTfrontend/gameuiconfig.cpp
changeset 2392 a55dbef5cf31
parent 2377 f3fab2b09e0c
child 2395 d01d3bf3e1de
--- a/QTfrontend/gameuiconfig.cpp	Tue Sep 22 21:00:39 2009 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Tue Sep 22 21:58:08 2009 +0000
@@ -48,6 +48,7 @@
 	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());
+	Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool());
 	Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
 	Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt());
 
@@ -120,6 +121,7 @@
 	}
 
 	setValue("audio/sound", isSoundEnabled());
+	setValue("audio/hardware", isSoundHardware());
 	setValue("audio/music", isMusicEnabled());
 	setValue("audio/volume", Form->ui.pageOptions->volumeBox->value());
 
@@ -177,6 +179,11 @@
 	return Form->ui.pageOptions->CBEnableSound->isChecked();
 }
 
+bool GameUIConfig::isSoundHardware()
+{
+	return Form->ui.pageOptions->CBHardwareSound->isChecked();
+}
+
 bool GameUIConfig::isMusicEnabled()
 {
 	return Form->ui.pageOptions->CBEnableMusic->isChecked();