/*
Copyright 2021 flyinghead
This file is part of Flycast.
Flycast is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Flycast is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Flycast. If not, see .
*/
#include "cfg/option.h"
#include "libretro_core_option_defines.h"
namespace config {
// Dynarec
Option DynarecEnabled("", true);
Option DynarecIdleSkip("", true);
Option DynarecSafeMode(CORE_OPTION_NAME "_div_matching");
// General
Option Cable("", 3); // TV Composite
Option Region(CORE_OPTION_NAME "_region", 1); // USA
Option Broadcast(CORE_OPTION_NAME "_broadcast", 0); // NTSC
Option Language(CORE_OPTION_NAME "_language", 1); // English
Option FullMMU("");
Option ForceWindowsCE(CORE_OPTION_NAME "_force_wince");
Option AutoLoadState("");
Option AutoSaveState("");
Option SavestateSlot("");
// Sound
Option DSPEnabled(CORE_OPTION_NAME "_enable_dsp", false);
#if HOST_CPU == CPU_ARM
Option AudioBufferSize("", 5644); // 128 ms
#else
Option AudioBufferSize("", 2822); // 64 ms
#endif
Option AutoLatency("");
OptionString AudioBackend("", "auto");
// Rendering
RendererOption RendererType;
Option UseMipmaps(CORE_OPTION_NAME "_mipmapping", true);
Option Widescreen(CORE_OPTION_NAME "_widescreen_hack");
Option SuperWidescreen("");
Option ShowFPS("");
Option RenderToTextureBuffer(CORE_OPTION_NAME "_enable_rttb");
Option TranslucentPolygonDepthMask("");
Option ModifierVolumes(CORE_OPTION_NAME "_volume_modifier_enable", true);
Option TextureUpscale(CORE_OPTION_NAME "_texupscale", 1);
Option MaxFilteredTextureSize(CORE_OPTION_NAME "_texupscale_max_filtered_texture_size", 256);
Option ExtraDepthScale("", 1.f);
Option CustomTextures(CORE_OPTION_NAME "_custom_textures");
Option DumpTextures(CORE_OPTION_NAME "_dump_textures");
Option ScreenStretching("", 100);
Option Fog(CORE_OPTION_NAME "_fog", true);
Option FloatVMUs("");
Option Rotate90("");
Option PerStripSorting("rend.PerStripSorting");
Option DelayFrameSwapping(CORE_OPTION_NAME "_delay_frame_swapping");
Option WidescreenGameHacks(CORE_OPTION_NAME "_widescreen_cheats");
std::array