From 2cc1fe9c026ddc5c369e05a9ad9257a39d49b1dc Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 6 Aug 2020 01:19:11 +1000 Subject: [PATCH] libretro: Expose CD-ROM preload option --- src/duckstation-libretro/libretro_host_interface.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index 033a7658b..61dbc17a8 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -376,6 +376,13 @@ static std::array s_option_definitions = {{ "Reads CD-ROM sectors ahead asynchronously, reducing the risk of frame time spikes.", {{"true", "Enabled"}, {"false", "Disabled"}}, "true"}, + {"CDROM.LoadImageToRAM", + "Preload CD-ROM Image To RAM", + "Loads the disc image to RAM before starting emulation. May reduce hitching if you are running off a network share, " + "at a cost of a greater startup time. As libretro provides no way to draw overlays, the emulator will appear to " + "lock up while the image is preloaded.", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "false"}, {"CPU.ExecutionMode", "CPU Execution Mode", "Which mode to use for CPU emulation. Recompiler provides the best performance.",