diff --git a/libretro/libretro.c b/libretro/libretro.c index ba57b4a7..4aec97c4 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -391,6 +391,7 @@ bool retro_load_game(const struct retro_game_info *info) snprintf(retro_game_path, sizeof(retro_game_path), "%s", info->path); + auto_model = (info->path[strlen(info->path) - 1] & ~0x20) == 'C' ? MODEL_CGB : MODEL_DMG; init_for_current_model(); if (GB_load_rom(&gb,info->path)) { @@ -398,8 +399,6 @@ bool retro_load_game(const struct retro_game_info *info) return false; } - auto_model = (info->path[strlen(info->path) - 1] & ~0x20) == 'c' ? MODEL_CGB : MODEL_DMG; - bool yes = true; environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS, &yes);