From c0ff856c2b03a9a2355888ea6f4093b86c8351a8 Mon Sep 17 00:00:00 2001 From: Colton Pawielski Date: Sun, 17 Sep 2023 15:40:53 -0500 Subject: [PATCH] Add 32MB RAM Mod option for libretro builds --- shell/libretro/libretro_core_options.h | 14 ++++++++++++++ shell/libretro/option.cpp | 1 + 2 files changed, 15 insertions(+) diff --git a/shell/libretro/libretro_core_options.h b/shell/libretro/libretro_core_options.h index c5664cd02e..2e1a927d17 100644 --- a/shell/libretro/libretro_core_options.h +++ b/shell/libretro/libretro_core_options.h @@ -689,6 +689,20 @@ struct retro_core_option_v2_definition option_defs_us[] = { "disabled", #endif }, + { + CORE_OPTION_NAME "_dc_32mb_mod", + "Dreamcast 32MB RAM Mod", + NULL, + "Enables 32MB RAM Mod for Dreamcast. May affect compatibility", + NULL, + "hacks", + { + { "disabled", NULL }, + { "enabled", NULL }, + { NULL, NULL }, + }, + "disabled", + }, { CORE_OPTION_NAME "_sh4clock", "SH4 CPU under/overclock", diff --git a/shell/libretro/option.cpp b/shell/libretro/option.cpp index 066e635733..f593db076a 100644 --- a/shell/libretro/option.cpp +++ b/shell/libretro/option.cpp @@ -101,6 +101,7 @@ Option UseReios(CORE_OPTION_NAME "_hle_bios"); Option OpenGlChecks("", false); Option FastGDRomLoad(CORE_OPTION_NAME "_gdrom_fast_loading", false); +Option RamMod32MB(CORE_OPTION_NAME "_dc_32mb_mod", false); //Option, false> ContentPath(""); //Option HideLegacyNaomiRoms("", true);