From 78a94cd88942eef4eeb9b52432421c9ded52e45f Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 14 Jun 2015 12:21:36 +0200 Subject: [PATCH] Revert "Add core option to force DMG mode" It breaks the GBA mode option, and calling gb.load() twice is just terrible coding. This reverts commit 6d4e62e98c471251e9c361faec7172ebb481964d, PR #40. --- libgambatte/libretro/libretro.cpp | 8 -------- 1 file changed, 8 deletions(-) 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';