diff -r 228757f6c54d -r fececcbc2189 QTfrontend/gameuiconfig.cpp --- 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() {