From 66faf0d3309f52a445dfcab835e3381588263d3c Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:06:18 +0100 Subject: [PATCH] [Libretro] Remove some "Invalid value" errors --- core/cfg/option.h | 4 ++++ shell/libretro/option.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/cfg/option.h b/core/cfg/option.h index 9b85578116..037fceff7e 100644 --- a/core/cfg/option.h +++ b/core/cfg/option.h @@ -412,7 +412,11 @@ extern Option VmuSound; class RendererOption : public Option { public: +#ifdef LIBRETRO + RendererOption() : Option("", +#else RendererOption() : Option("pvr.rend", +#endif #if defined(USE_DX11) RenderType::DirectX11 #elif defined(USE_DX9) diff --git a/shell/libretro/option.cpp b/shell/libretro/option.cpp index f593db076a..617ebfed79 100644 --- a/shell/libretro/option.cpp +++ b/shell/libretro/option.cpp @@ -70,7 +70,7 @@ Option ScreenStretching("", 100); Option Fog(CORE_OPTION_NAME "_fog", true); Option FloatVMUs(""); Option Rotate90(""); -Option PerStripSorting("rend.PerStripSorting"); +Option PerStripSorting(""); Option DelayFrameSwapping(CORE_OPTION_NAME "_delay_frame_swapping"); Option WidescreenGameHacks(CORE_OPTION_NAME "_widescreen_cheats"); std::array, 4> CrosshairColor {