X_CFG_BOOL(audio.enable_lara_mic,                            false)
X_CFG_BOOL(audio.enable_music_in_inventory,                  true)
X_CFG_BOOL(audio.enable_music_in_menu,                       true)
X_CFG_BOOL(audio.enable_music_on_death,                      false)
X_CFG_BOOL(audio.enable_pitched_sounds,                      true)
X_CFG_BOOL(audio.enable_ps1_sfx,                             true)
X_CFG_BOOL(audio.enable_underwater_anim_sfx,                 true)
X_CFG_BOOL(audio.fix_chainblock_secret_sound,                true)
X_CFG_BOOL(audio.fix_secrets_killing_music,                  true)
X_CFG_BOOL(audio.load_music_triggers,                        true)
X_CFG_BOOL(audio.mute_out_of_focus,                          true)
X_CFG_BOOL(debug.enable_debug_anim,                          false)
X_CFG_BOOL(debug.enable_debug_bounding_boxes,                false)
X_CFG_BOOL(debug.enable_debug_camera,                        false)
X_CFG_BOOL(debug.enable_debug_portals,                       false)
X_CFG_BOOL(debug.enable_debug_pos,                           false)
X_CFG_BOOL(debug.enable_debug_room_clip,                     false)
X_CFG_BOOL(debug.enable_debug_spheres,                       false)
X_CFG_BOOL(debug.enable_debug_status,                        false)
X_CFG_BOOL(debug.enable_debug_triggers,                      false)
X_CFG_BOOL(debug.enable_endless_flare_time,                  false)
X_CFG_BOOL(debug.enable_endless_sprint,                      false)
X_CFG_BOOL(debug.enable_invulnerability,                     false)
X_CFG_BOOL(debug.enable_review_markers,                      false)
X_CFG_BOOL(flow.cheat_keys,                                  true)
X_CFG_BOOL(flow.load_save_disabled,                          false)
X_CFG_BOOL(flow.lockout_option_ring,                         false)
X_CFG_BOOL(flow.play_any_level,                              false)
X_CFG_BOOL(gameplay.change_pierre_spawn,                     true)
X_CFG_BOOL(gameplay.disable_extra_guns,                      false)
X_CFG_BOOL(gameplay.disable_healing_between_levels,          false)
X_CFG_BOOL(gameplay.disable_medpacks,                        false)
X_CFG_BOOL(gameplay.disable_trex_collision,                  false)
X_CFG_BOOL(gameplay.enable_ally_kill_count,                  true)
X_CFG_BOOL(gameplay.enable_ally_targeting,                   true)
X_CFG_BOOL(gameplay.enable_alternative_turns,                true)
X_CFG_BOOL(gameplay.enable_auto_item_selection,              true)
X_CFG_BOOL(gameplay.enable_body_bags,                        false)
X_CFG_BOOL(gameplay.enable_cheats,                           false)
X_CFG_BOOL(gameplay.enable_cinematic_skips,                  true)
X_CFG_BOOL(gameplay.enable_cinematics,                       true)
X_CFG_BOOL(gameplay.enable_compass_stats,                    true)
X_CFG_BOOL(gameplay.enable_console,                          true)
X_CFG_BOOL(gameplay.enable_controlled_drops,                 true)
X_CFG_BOOL(gameplay.enable_crawl_jump,                       true)
X_CFG_BOOL(gameplay.enable_crawl_tilt,                       true)
X_CFG_BOOL(gameplay.enable_crawling,                         true)
X_CFG_BOOL(gameplay.enable_credits,                          true)
X_CFG_BOOL(gameplay.enable_crouch_roll,                      true)
X_CFG_BOOL(gameplay.enable_cutscenes,                        true)
X_CFG_BOOL(gameplay.enable_demo,                             true)
X_CFG_BOOL(gameplay.enable_enemy_rotation,                   true)
X_CFG_BOOL(gameplay.enable_enhanced_saves,                   true)
X_CFG_BOOL(gameplay.enable_environment_kill_count,           true)
X_CFG_BOOL(gameplay.enable_fmv,                              true)
X_CFG_BOOL(gameplay.enable_idle_pose_camera,                 false)
X_CFG_BOOL(gameplay.enable_inverted_look,                    false)
X_CFG_BOOL(gameplay.enable_item_examining,                   true)
X_CFG_BOOL(gameplay.enable_jump_twists,                      true)
X_CFG_BOOL(gameplay.enable_killer_pushblocks,                true)
X_CFG_BOOL(gameplay.enable_lean_jumping,                     true)
X_CFG_BOOL(gameplay.enable_ledge_jumps,                      true)
X_CFG_BOOL(gameplay.enable_legal,                            true)
X_CFG_BOOL(gameplay.enable_manual_camera,                    false)
X_CFG_BOOL(gameplay.enable_pickup_aids,                      true)
X_CFG_BOOL(gameplay.enable_play_previous_levels,             true)
X_CFG_BOOL(gameplay.enable_responsive_crawl,                 true)
X_CFG_BOOL(gameplay.enable_responsive_sprint,                true)
X_CFG_BOOL(gameplay.enable_slide_to_run,                     true)
X_CFG_BOOL(gameplay.enable_smooth_wall_deflect,              true)
X_CFG_BOOL(gameplay.enable_sprint,                           true)
X_CFG_BOOL(gameplay.enable_swing_cancel,                     true)
X_CFG_BOOL(gameplay.enable_toggle_crouch,                    false)
X_CFG_BOOL(gameplay.enable_toggle_sprint,                    false)
X_CFG_BOOL(gameplay.enable_total_stats,                      true)
X_CFG_BOOL(gameplay.enable_tr2_jumping,                      true)
X_CFG_BOOL(gameplay.enable_tr2_swim_cancel,                  true)
X_CFG_BOOL(gameplay.enable_tr2_swimming,                     true)
X_CFG_BOOL(gameplay.enable_underwater_auto_draw,             true)
X_CFG_BOOL(gameplay.enable_uw_roll,                          true)
X_CFG_BOOL(gameplay.enable_wading,                           true)
X_CFG_BOOL(gameplay.fix_alligator_ai,                        true)
X_CFG_BOOL(gameplay.fix_animated_spikes,                     true)
X_CFG_BOOL(gameplay.fix_bear_ai,                             true)
X_CFG_BOOL(gameplay.fix_bridge_collision,                    true)
X_CFG_BOOL(gameplay.fix_descending_glitch,                   true)
X_CFG_BOOL(gameplay.fix_flare_throw_priority,                true)
X_CFG_BOOL(gameplay.fix_floor_data_issues,                   true)
X_CFG_BOOL(gameplay.fix_free_flare_glitch,                   true)
X_CFG_BOOL(gameplay.fix_item_duplication_glitch,             true)
X_CFG_BOOL(gameplay.fix_lara_pickup_embed,                   true)
X_CFG_BOOL(gameplay.fix_lift_collision,                      true)
X_CFG_BOOL(gameplay.fix_m16_accuracy,                        true)
X_CFG_BOOL(gameplay.fix_monkey_pickup_priority,              true)
X_CFG_BOOL(gameplay.fix_pipeman_aim,                         true)
X_CFG_BOOL(gameplay.fix_qwop_glitch,                         true)
X_CFG_BOOL(gameplay.fix_step_glitch,                         true)
X_CFG_BOOL(gameplay.fix_underwater_crawl,                    true)
X_CFG_BOOL(gameplay.fix_wade_wall_hit,                       true)
X_CFG_BOOL(gameplay.fix_walk_run_jump,                       true)
X_CFG_BOOL(gameplay.fix_wall_geometry,                       true)
X_CFG_BOOL(gameplay.pause_on_focus_lost,                     false)
X_CFG_BOOL(gameplay.remember_gun_status,                     true)
X_CFG_BOOL(gameplay.restore_ps1_enemies,                     false)
X_CFG_BOOL(input.enable_buffering_func_keys,                 false)
X_CFG_BOOL(input.enable_buffering_inventory,                 true)
X_CFG_BOOL(input.enable_controller,                          true)
X_CFG_BOOL(input.enable_responsive_passport,                 true)
X_CFG_BOOL(input.enable_touch_controls,                      false)
X_CFG_BOOL(input.enable_tr3_sidesteps,                       true)
X_CFG_BOOL(profile.new_game_plus_unlock,                     false)
X_CFG_BOOL(rendering.enable_dithering,                       false)
X_CFG_BOOL(rendering.enable_lighting,                        true)
X_CFG_BOOL(rendering.enable_textures,                        true)
X_CFG_BOOL(rendering.enable_trapezoid_filter,                true)
X_CFG_BOOL(rendering.enable_vertex_snap,                     false)
X_CFG_BOOL(rendering.enable_vsync,                           true)
X_CFG_BOOL(rendering.enable_wireframe,                       false)
X_CFG_BOOL(ui.enable_bar_flashing,                           true)
X_CFG_BOOL(ui.enable_fps_counter,                            false)
X_CFG_BOOL(ui.enable_game_ui,                                true)
X_CFG_BOOL(ui.enable_photo_mode_ui,                          true)
X_CFG_BOOL(ui.enable_wraparound,                             true)
X_CFG_BOOL(ui.inventory_fade_effects,                        true)
X_CFG_BOOL(ui.pause_fade_effects,                            true)
X_CFG_BOOL(ui.show_bars,                                     true)
X_CFG_BOOL(ui.show_pickups_overlay,                          true)
X_CFG_BOOL(ui.show_title_version,                            true)
X_CFG_BOOL(ui.stats.show_ammo,                               true)
X_CFG_BOOL(ui.stats.show_crystals,                           false)
X_CFG_BOOL(ui.stats.show_deaths,                             true)
X_CFG_BOOL(ui.stats.show_distance_travelled,                 true)
X_CFG_BOOL(ui.stats.show_kills,                              true)
X_CFG_BOOL(ui.stats.show_level_header,                       false)
X_CFG_BOOL(ui.stats.show_medipacks_used,                     true)
X_CFG_BOOL(ui.stats.show_pickups,                            true)
X_CFG_BOOL(ui.stats.show_secrets,                            true)
X_CFG_BOOL(ui.stats.show_time_taken,                         true)
X_CFG_BOOL(ui.stats.show_totals,                             true)
X_CFG_BOOL(ui.stats_fade_effects,                            true)
X_CFG_BOOL(visuals.enable_3d_pickups,                        true)
X_CFG_BOOL(visuals.enable_braid,                             true)
X_CFG_BOOL(visuals.enable_exit_fade_effects,                 true)
X_CFG_BOOL(visuals.enable_fade_effects,                      true)
X_CFG_BOOL(visuals.enable_fire_lighting,                     true)
X_CFG_BOOL(visuals.enable_footprints,                        true)
X_CFG_BOOL(visuals.enable_glide_cameras,                     true)
X_CFG_BOOL(visuals.enable_gun_glow,                          true)
X_CFG_BOOL(visuals.enable_gun_lighting,                      true)
X_CFG_BOOL(visuals.enable_poison_vision,                     true)
X_CFG_BOOL(visuals.enable_ps1_crystals,                      true)
X_CFG_BOOL(visuals.enable_reflections,                       true)
X_CFG_BOOL(visuals.enable_responsive_mesh_tint,              true)
X_CFG_BOOL(visuals.enable_shotgun_flash,                     true)
X_CFG_BOOL(visuals.enable_skybox,                            true)
X_CFG_BOOL(visuals.enable_static_lighting,                   true)
X_CFG_BOOL(visuals.enable_weather,                           true)
X_CFG_BOOL(visuals.fix_animated_sprites,                     true)
X_CFG_BOOL(visuals.fix_item_rots,                            true)
X_CFG_BOOL(visuals.fix_texture_issues,                       true)
X_CFG_BOOL(visuals.fog_transparency,                         false)
X_CFG_BOOL(window.is_fullscreen,                             true)
X_CFG_BOOL(window.is_maximized,                              true)
X_CFG_DYNAMIC_ENUM(visuals.lara_outfit,                      nullptr)
X_CFG_DYNAMIC_ENUM_EX("ui.airbar_color",                     ui.lara_air_bar.color, "blue")
X_CFG_DYNAMIC_ENUM_EX("ui.airbar_color_ps1",                 ui.lara_air_bar.color_ps1, "teal-green")
X_CFG_DYNAMIC_ENUM_EX("ui.enemy_healthbar_color",            ui.enemy_health_bar.color, "grey")
X_CFG_DYNAMIC_ENUM_EX("ui.enemy_healthbar_color_allies",     ui.enemy_health_bar.color_allies, "teal")
X_CFG_DYNAMIC_ENUM_EX("ui.enemy_healthbar_color_allies_ps1", ui.enemy_health_bar.color_allies_ps1, "yellow-green")
X_CFG_DYNAMIC_ENUM_EX("ui.enemy_healthbar_color_ps1",        ui.enemy_health_bar.color_ps1, "orange-red")
X_CFG_DYNAMIC_ENUM_EX("ui.exposurebar_color",                ui.lara_exposure_bar.color, "cyan")
X_CFG_DYNAMIC_ENUM_EX("ui.exposurebar_color_ps1",            ui.lara_exposure_bar.color_ps1, "dark-blue-red")
X_CFG_DYNAMIC_ENUM_EX("ui.healthbar_color",                  ui.lara_health_bar.color, "red")
X_CFG_DYNAMIC_ENUM_EX("ui.healthbar_color_ps1",              ui.lara_health_bar.color_ps1, "red-green")
X_CFG_DYNAMIC_ENUM_EX("ui.healthbar_poison_color",           ui.lara_health_bar.poison_color, "yellow")
X_CFG_DYNAMIC_ENUM_EX("ui.healthbar_poison_color_ps1",       ui.lara_health_bar.poison_color_ps1, "dark-red-purple")
X_CFG_DYNAMIC_ENUM_EX("ui.sprintbar_color",                  ui.lara_sprint_bar.color, "green")
X_CFG_DYNAMIC_ENUM_EX("ui.sprintbar_color_ps1",              ui.lara_sprint_bar.color_ps1, "red-yellow")
X_CFG_ENUM(audio.music_load_condition,                       MUSIC_LOAD_CONDITION_NON_AMBIENT, MUSIC_LOAD_CONDITION)
X_CFG_ENUM(gameplay.ally_hostility_policy,                   ALLY_HOSTILITY_POLICY_SHARED, ALLY_HOSTILITY_POLICY)
X_CFG_ENUM(gameplay.creature_drown_policy,                   CREATURE_DROWN_POLICY_SUBMERGED, CREATURE_DROWN_POLICY)
X_CFG_ENUM(gameplay.game_modes_policy,                       GAME_MODES_POLICY_ALWAYS, GAME_MODES_POLICY)
X_CFG_ENUM(gameplay.intro_fmv_mode,                          INTRO_FMV_NEW_GAME, INTRO_FMV_MODE)
X_CFG_ENUM(gameplay.look_mode,                               LOOK_MODE_ENHANCED, LOOK_MODE)
X_CFG_ENUM(gameplay.ring_memory_mode,                        RING_MEMORY_OFF, RING_MEMORY_MODE)
X_CFG_ENUM(gameplay.target_change_mode,                      TARGET_CHANGE_MODE_ENHANCED, TARGET_CHANGE_MODE)
X_CFG_ENUM(gameplay.wall_glitch_mode,                        WALL_GLITCH_FIXED, WALL_GLITCH_MODE)
X_CFG_ENUM(input.backend,                                    INPUT_BACKEND_KEYBOARD, INPUT_BACKEND)
X_CFG_ENUM(input.quick_guns_mode,                            QUICK_GUNS_MODE_DRAW_AND_HOLSTER, QUICK_GUNS_MODE)
X_CFG_ENUM(rendering.aspect_mode,                            ASPECT_MODE_ANY, ASPECT_MODE)
X_CFG_ENUM(rendering.lighting_contrast,                      LIGHTING_CONTRAST_MEDIUM, LIGHTING_CONTRAST)
X_CFG_ENUM(rendering.screenshot_format,                      SCREENSHOT_FORMAT_JPEG, SCREENSHOT_FORMAT)
X_CFG_ENUM(rendering.sprite_lock_mode,                       BILLBOARD_LOCK_PERSPECTIVE, BILLBOARD_LOCK_MODE)
X_CFG_ENUM(rendering.texture_filter,                         TEXTURE_FILTER_POINT, TEXTURE_FILTER)
X_CFG_ENUM(rendering.ui_filter,                              TEXTURE_FILTER_POINT, TEXTURE_FILTER)
X_CFG_ENUM(rendering.upscaling_filter,                       TEXTURE_FILTER_POINT, TEXTURE_FILTER)
X_CFG_ENUM(ui.menu_style,                                    UI_STYLE_PS1, UI_STYLE)
X_CFG_ENUM(ui.stats.style,                                   STATS_STYLE_BORDERED, STATS_STYLE)
X_CFG_ENUM(visuals.sunglasses_mode,                          SUNGLASSES_MODE_OFF, SUNGLASSES_MODE)
X_CFG_ENUM_EX("ui.airbar_location",                          ui.lara_air_bar.location, UI_ELEMENT_LOCATION_TOP_RIGHT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_EX("ui.ammo_counter_location",                    ui.ammo_counter.location, UI_ELEMENT_LOCATION_TOP_RIGHT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_EX("ui.enemy_healthbar_location",                 ui.enemy_health_bar.location, UI_ELEMENT_LOCATION_BOTTOM_LEFT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_EX("ui.enemy_healthbar_show_mode",                ui.enemy_health_bar.show_mode, BAR_SHOW_MODE_ALWAYS, BAR_SHOW_MODE)
X_CFG_ENUM_EX("ui.exposurebar_location",                     ui.lara_exposure_bar.location, UI_ELEMENT_LOCATION_TOP_RIGHT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_EX("ui.healthbar_location",                       ui.lara_health_bar.location, UI_ELEMENT_LOCATION_TOP_LEFT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_EX("ui.sprintbar_location",                       ui.lara_sprint_bar.location, UI_ELEMENT_LOCATION_TOP_RIGHT, UI_ELEMENT_LOCATION)
X_CFG_ENUM_RANGE(gameplay.loading_screens,                   LOADING_SCREENS_DISABLED, LOADING_SCREENS_MODE, 0, LOADING_SCREENS_NEW_GAMES)
X_CFG_ENUM_RANGE(visuals.blood_effects,                      BLOOD_EFFECTS_RED, BLOOD_EFFECTS, 0, BLOOD_EFFECTS_NUMBER_OF - 1)
X_CFG_FLOAT_PERCENT(audio.ambient_volume,                    1.0f)
X_CFG_FLOAT_PERCENT(audio.cutscene_volume,                   1.0f)
X_CFG_FLOAT_PERCENT(audio.fmv_volume,                        1.0f)
X_CFG_FLOAT_PERCENT(audio.inventory_ambient_volume,          1.0f)
X_CFG_FLOAT_PERCENT(audio.inventory_music_volume,            1.0f)
X_CFG_FLOAT_PERCENT(audio.master_volume,                     0.8f)
X_CFG_FLOAT_PERCENT(audio.music_volume,                      1.0f)
X_CFG_FLOAT_PERCENT(audio.sound_volume,                      1.0f)
X_CFG_FLOAT_PERCENT(audio.underwater_ambient_volume,         1.0f)
X_CFG_FLOAT_PERCENT(audio.underwater_music_volume,           1.0f)
X_CFG_FLOAT_PERCENT_RANGE(input.touch_button_scale,          1.0f, 0.5, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(input.touch_dpad_deadzone,         0.35f, 0.1, 0.7)
X_CFG_FLOAT_PERCENT_RANGE(input.touch_dpad_scale,            1.0f, 0.5, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(input.touch_opacity,               1.0f, 0.1, 1.0)
X_CFG_FLOAT_PERCENT_RANGE(rendering.borders,                 0.0f, 0.0, 0.45)
X_CFG_FLOAT_PERCENT_RANGE(ui.bar_scale,                      1.0f, 0.5, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(ui.pickup_scale,                   1.0f, 0.5, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(ui.text_scale,                     1.0f, 0.5, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(visuals.background_brightness,     1.0f, 0.1, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(visuals.game_brightness,           1.0f, 0.1, 2.0)
X_CFG_FLOAT_PERCENT_RANGE(visuals.ui_brightness,             1.0f, 0.1, 2.0)
X_CFG_FLOAT_RANGE(rendering.anisotropy_filter,               16.0f, 1.0, 32.0)
X_CFG_FLOAT_RANGE(rendering.wireframe_width,                 2.5, 1.0, 100.0)
X_CFG_FLOAT_RANGE(visuals.gamma,                             2.5f, 1.0, 10.0)
X_CFG_INT32(config_version,                                  0)
X_CFG_INT32(window.fs_height,                                -1)
X_CFG_INT32(window.fs_width,                                 -1)
X_CFG_INT32(window.height,                                   720)
X_CFG_INT32(window.width,                                    1280)
X_CFG_INT32(window.x,                                        -1)
X_CFG_INT32(window.y,                                        -1)
X_CFG_INT32_RANGE(gameplay.camera_speed,                     5, 1, 10)
X_CFG_INT32_RANGE(gameplay.harpoon_recoil,                   4, 0, 1000)
X_CFG_INT32_RANGE(gameplay.idle_pose_timeout,                60, 0, 1200)
X_CFG_INT32_RANGE(gameplay.start_lara_hitpoints,             LARA_MAX_HITPOINTS, 1, LARA_MAX_HITPOINTS)
X_CFG_INT32_RANGE(gameplay.turbo_speed,                      0, CLOCK_TURBO_SPEED_MIN, CLOCK_TURBO_SPEED_MAX)
X_CFG_INT32_RANGE(input.controller_layout,                   INPUT_LAYOUT_DEFAULT, 0, INPUT_LAYOUT_NUMBER_OF - 1)
X_CFG_INT32_RANGE(input.keyboard_layout,                     INPUT_LAYOUT_DEFAULT, 0, INPUT_LAYOUT_NUMBER_OF - 1)
X_CFG_INT32_RANGE(input.touch_layout,                        INPUT_LAYOUT_DEFAULT, 0, INPUT_LAYOUT_NUMBER_OF - 1)
X_CFG_INT32_RANGE(rendering.fps,                             60, 30, 60)
X_CFG_INT32_RANGE(rendering.upscaling_factor,                1, 1, 10)
X_CFG_INT32_RANGE(visuals.fog_end,                           30, 1, 100)
X_CFG_INT32_RANGE(visuals.fog_start,                         22, 1, 100)
X_CFG_INT32_RANGE(visuals.fov,                               80, 30, 150)
X_CFG_RGB888(visuals.fog_color,                              0, 0, 0)
X_CFG_STRING(language,                                       "en")
