From e665dd36097d5b91c8f2a9dc18ab58c40954b5cc Mon Sep 17 00:00:00 2001 From: DarthMew Date: Mon, 18 Oct 2021 14:45:40 +0200 Subject: [PATCH] Add linear upscaling and 8MB Ram options --- .../libretro_host_interface.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index 8300b9fd..03017030 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -588,7 +588,7 @@ void LibretroHostInterface::OnSystemDestroyed() HostInterface::OnSystemDestroyed(); } -static std::array s_option_definitions = {{ +static std::array s_option_definitions = {{ {"duckstation_Console.Region", "Console Region", "Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.", @@ -828,6 +828,13 @@ static std::array s_option_definitions = {{ "hidden.", {{"None", "None"}, {"Overscan", "Only Overscan Area"}, {"Borders", "All Borders"}}, "Overscan"}, + {"duckstation_Display.LinearFiltering", + "Linear Upscaling", + "Uses bilinear texture filtering when displaying the console's framebuffer to the screen. Disabling filtering will produce " + "a sharper, blockier/pixelated image. Enabling will smooth out the image. This option will be less noticable the higher " + "the resolution scale", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "true"}, {"duckstation_GPU.DownsampleMode", "Downsampling", "Downsamples the rendered image prior to displaying it. Can improve overall image quality in mixed 2D/3D games, but " @@ -1086,6 +1093,13 @@ static std::array s_option_definitions = {{ {"9", "9 Frames"}, {"10", "10 Frames"}}, "0"}, + {"duckstation_Console.Enable8MBRAM", + "Enable 8MB RAM (Dev Console)", + "Enabled an additional 6MB of RAM, usually present on dev consoles. Games have to use a " + "larger heap size for this additional RAM to be usable, and may break games which rely " + "on memory mirroring, so it should only be used with compatible mods", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "false"}, {}, }}; @@ -1099,6 +1113,7 @@ bool LibretroHostInterface::SetCoreOptions() } // use legacy options struct, which sucks. do we need to? + // Update this to V2 at some point. return false; }