Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 7 | ||
---|---|---|---|
Line 186... | Line 186... | ||
186 | if (ini_process_boolean(name, value, option_name, target)) return 1; |
186 | if (ini_process_boolean(name, value, option_name, target)) return 1; |
187 | 187 | ||
188 | if (check_ini_section("General")) { |
188 | if (check_ini_section("General")) { |
189 | process_boolean("enable_copyprot", &enable_copyprot); |
189 | process_boolean("enable_copyprot", &enable_copyprot); |
190 | process_boolean("enable_mixer", &enable_mixer); |
190 | process_boolean("enable_mixer", &enable_mixer); |
- | 191 | process_int("mixer_volume", &mixer_volume, NULL); |
|
191 | process_boolean("enable_fade", &enable_fade); |
192 | process_boolean("enable_fade", &enable_fade); |
192 | process_boolean("enable_flash", &enable_flash); |
193 | process_boolean("enable_flash", &enable_flash); |
193 | process_boolean("enable_text", &enable_text); |
194 | process_boolean("enable_text", &enable_text); |
194 | process_boolean("enable_info_screen", &enable_info_screen); |
195 | process_boolean("enable_info_screen", &enable_info_screen); |
195 | process_boolean("start_fullscreen", &start_fullscreen); |
196 | process_boolean("start_fullscreen", &start_fullscreen); |
Line 228... | Line 229... | ||
228 | #endif |
229 | #endif |
229 | #ifdef USE_LIGHTING |
230 | #ifdef USE_LIGHTING |
230 | process_boolean("enable_lighting", &enable_lighting); |
231 | process_boolean("enable_lighting", &enable_lighting); |
231 | #endif |
232 | #endif |
232 | process_int("filter_level", &filter_level, NULL); |
233 | process_int("filter_level", &filter_level, NULL); |
233 | if (filter_level < 1) |
- | |
234 | filter_level = 1; |
- | |
235 | else if (filter_level > 6) |
- | |
236 | filter_level = 6; |
- | |
237 | } |
234 | } |
238 | 235 | ||
239 | if (check_ini_section("Enhancements")) { |
236 | if (check_ini_section("Enhancements")) { |
240 | if (strcasecmp(name, "use_fixes_and_enhancements") == 0) { |
237 | if (strcasecmp(name, "use_fixes_and_enhancements") == 0) { |
241 | if (strcasecmp(value, "true") == 0) use_fixes_and_enhancements = 1; |
238 | if (strcasecmp(value, "true") == 0) use_fixes_and_enhancements = 1; |