apply patch #766 (use tv_system from nes 2.0 header)

This commit is contained in:
zeromus 2016-12-21 19:57:03 +00:00
parent d54b7388b9
commit 79c27047e4
1 changed files with 3 additions and 1 deletions

View File

@ -910,7 +910,9 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
// since apparently the iNES format doesn't store this information,
// guess if the settings should be PAL or NTSC from the ROM name
// TODO: MD5 check against a list of all known PAL games instead?
if (OverwriteVidMode) {
if (iNES2) {
FCEUI_SetVidSystem(((head.TV_system & 3) == 1) ? 1 : 0);
} else if (OverwriteVidMode) {
if (strstr(name, "(E)") || strstr(name, "(e)")
|| strstr(name, "(Europe)") || strstr(name, "(PAL)")
|| strstr(name, "(F)") || strstr(name, "(f)")