diff --git a/libgambatte/libretro/libretro.cpp b/libgambatte/libretro/libretro.cpp index 6a79430..9cf69c8 100644 --- a/libgambatte/libretro/libretro.cpp +++ b/libgambatte/libretro/libretro.cpp @@ -150,7 +150,6 @@ void retro_set_environment(retro_environment_t cb) { "gambatte_gb_gbamode", "GBA mode; disabled|enabled" }, { "gambatte_gb_colorization", "GB Colorization; disabled|enabled|custom" }, { "gambatte_gbc_color_correction", "Color correction; enabled|disabled" }, - { "gambatte_gb_force_dmg", "Force DMG Mode; disabled|enabled" }, { NULL, NULL }, }; @@ -483,13 +482,6 @@ bool retro_load_game(const struct retro_game_info *info) if (gb.load(info->data, info->size, gbamode ? gambatte::GB::GBA_CGB : 0) != 0) return false; - bool force_dmg = false; - var.key = "gambatte_gb_force_dmg"; - if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value && !strcmp(var.value, "enabled")) force_dmg=true; - - if (gb.load(info->data, info->size, force_dmg ? gambatte::GB::FORCE_DMG : 0) != 0) - return false; - rom_path = info->path ? info->path : ""; strncpy(internal_game_name, (const char*)info->data + 0x134, sizeof(internal_game_name) - 1); internal_game_name[sizeof(internal_game_name)-1]='\0';