Skip to content

Commit

Permalink
Merge pull request #23 from mscherer/fix_libretro_detection
Browse files Browse the repository at this point in the history
Let libretro use the right region depending on the cartridge
  • Loading branch information
drhelius authored Apr 11, 2020
2 parents e0d87f2 + fec413a commit d2bede9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void retro_unload_game(void)

unsigned retro_get_region(void)
{
return RETRO_REGION_NTSC;
return core->GetCartridge()->IsPAL() ? RETRO_REGION_PAL : RETRO_REGION_NTSC;
}

bool retro_load_game_special(unsigned type, const struct retro_game_info *info, size_t num)
Expand Down

0 comments on commit d2bede9

Please sign in to comment.