[libgens] EmuContextFactory::createContext(): Added a region parameter.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 3 Apr 2016 01:34:00 +0000 (21:34 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 3 Apr 2016 01:34:00 +0000 (21:34 -0400)
commit3018f1ddcef9fce27ad7072c3d319ed2dfe77939
tree94a378f71f336d996a029d2bf92e7789b3a0f513
parent4084185df37930e93bdb0fe85e2fdcb59b1915d2
[libgens] EmuContextFactory::createContext(): Added a region parameter.

This allows setting the initial region.

[gens-qt4] EmuManager: Specify lg_region when creating EmuContext.

This fixes the initial region. Previously, it was always set to
SysVersion::REGION_US_NTSC, regardless of the user's setting.

This fixes a regression from commit f1f539b164d3421025be8d0a70f4932cb1bd06f6.
([gens-qt4] EmuManager::loadRom_int(): Support loading Pico ROMs.)
src/gens-qt4/EmuManager.cpp
src/libgens/EmuContext/EmuContextFactory.cpp
src/libgens/EmuContext/EmuContextFactory.hpp