/*
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 "option.h"
namespace config {
// Dynarec
Option DynarecEnabled("Dynarec.Enabled", true);
Option DynarecIdleSkip("Dynarec.idleskip", true);
Option DynarecUnstableOpt("Dynarec.unstable-opt");
Option DynarecSafeMode("Dynarec.safe-mode");
Option DisableVmem32("Dynarec.DisableVmem32");
// General
Option Cable("Dreamcast.Cable", 3); // TV Composite
Option Region("Dreamcast.Region", 1); // USA
Option Broadcast("Dreamcast.Broadcast", 0); // NTSC
Option Language("Dreamcast.Language", 1); // English
Option FullMMU("Dreamcast.FullMMU");
Option ForceWindowsCE("Dreamcast.ForceWindowsCE");
Option AutoSavestate("Dreamcast.AutoSavestate");
// Sound
Option DSPEnabled("aica.DSPEnabled", false);
Option DisableSound("aica.NoSound");
#if HOST_CPU == CPU_ARM
Option AudioBufferSize("aica.BufferSize", 5644); // 128 ms
#else
Option AudioBufferSize("aica.BufferSize", 2822); // 64 ms
#endif
Option AutoLatency("aica.AutoLatency",
#ifdef __ANDROID__
true
#else
false
#endif
);
OptionString AudioBackend("backend", "auto", "audio");
// Rendering
RendererOption RendererType;
Option UseMipmaps("rend.UseMipmaps", true);
Option Widescreen("rend.WideScreen");
Option ShowFPS("rend.ShowFPS");
Option RenderToTextureBuffer("rend.RenderToTextureBuffer");
Option RenderToTextureUpscale("rend.RenderToTextureUpscale", 1);
Option TranslucentPolygonDepthMask("rend.TranslucentPolygonDepthMask");
Option ModifierVolumes("rend.ModifierVolumes", true);
Option TextureUpscale("rend.TextureUpscale", 1);
Option MaxFilteredTextureSize("rend.MaxFilteredTextureSize", 256);
Option ExtraDepthScale("rend.ExtraDepthScale", 1.f);
Option CustomTextures("rend.CustomTextures");
Option DumpTextures("rend.DumpTextures");
Option ScreenStretching("rend.ScreenStretching", 100);
Option Fog("rend.Fog", true);
Option FloatVMUs("rend.FloatVMUs");
Option Rotate90("rend.Rotate90");
Option PerStripSorting("rend.PerStripSorting");
Option DelayFrameSwapping("rend.DelayFrameSwapping");
Option WidescreenGameHacks("rend.WidescreenGameHacks");
std::array