equal
deleted
inserted
replaced
47 |
47 |
48 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
48 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
49 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
49 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
50 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
50 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
51 #ifdef _WIN32 |
51 #ifdef _WIN32 |
52 Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool()); |
52 // Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool()); |
53 #endif |
53 #endif |
54 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
54 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
55 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
55 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
56 |
56 |
57 QString netNick = value("net/nick", "").toString(); |
57 QString netNick = value("net/nick", "").toString(); |
121 //resizeToConfigValues(); // TODO: why this has been made? |
121 //resizeToConfigValues(); // TODO: why this has been made? |
122 } |
122 } |
123 |
123 |
124 setValue("audio/sound", isSoundEnabled()); |
124 setValue("audio/sound", isSoundEnabled()); |
125 #ifdef _WIN32 |
125 #ifdef _WIN32 |
126 setValue("audio/hardware", isSoundHardware()); |
126 // setValue("audio/hardware", isSoundHardware()); |
127 #endif |
127 #endif |
128 setValue("audio/music", isMusicEnabled()); |
128 setValue("audio/music", isMusicEnabled()); |
129 setValue("audio/volume", Form->ui.pageOptions->volumeBox->value()); |
129 setValue("audio/volume", Form->ui.pageOptions->volumeBox->value()); |
130 |
130 |
131 setValue("net/nick", netNick()); |
131 setValue("net/nick", netNick()); |
182 } |
182 } |
183 |
183 |
184 #ifdef _WIN32 |
184 #ifdef _WIN32 |
185 bool GameUIConfig::isSoundHardware() |
185 bool GameUIConfig::isSoundHardware() |
186 { |
186 { |
187 return Form->ui.pageOptions->CBHardwareSound->isChecked(); |
187 // return Form->ui.pageOptions->CBHardwareSound->isChecked(); |
|
188 return false; |
188 } |
189 } |
189 #endif |
190 #endif |
190 |
191 |
191 bool GameUIConfig::isMusicEnabled() |
192 bool GameUIConfig::isMusicEnabled() |
192 { |
193 { |