mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix GB colors overrides being broken for games with CGB overrides when set to none
This commit is contained in:
parent
8f724d6a1f
commit
feec147f07
|
@ -12,6 +12,9 @@
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include <mgba/feature/commandline.h>
|
#include <mgba/feature/commandline.h>
|
||||||
|
#ifdef M_CORE_GB
|
||||||
|
#include <mgba/internal/gb/overrides.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static const mOption s_frontendOptions[] = {
|
static const mOption s_frontendOptions[] = {
|
||||||
{ "ecard", true, '\0' },
|
{ "ecard", true, '\0' },
|
||||||
|
@ -128,8 +131,10 @@ ConfigController::ConfigController(QObject* parent)
|
||||||
m_opts.interframeBlending = false;
|
m_opts.interframeBlending = false;
|
||||||
mCoreConfigLoad(&m_config);
|
mCoreConfigLoad(&m_config);
|
||||||
mCoreConfigLoadDefaults(&m_config, &m_opts);
|
mCoreConfigLoadDefaults(&m_config, &m_opts);
|
||||||
|
#ifdef M_CORE_GB
|
||||||
mCoreConfigSetDefaultIntValue(&m_config, "sgb.borders", 1);
|
mCoreConfigSetDefaultIntValue(&m_config, "sgb.borders", 1);
|
||||||
mCoreConfigSetDefaultIntValue(&m_config, "useCgbColors", 1);
|
mCoreConfigSetDefaultIntValue(&m_config, "gb.colors", GB_COLORS_CGB);
|
||||||
|
#endif
|
||||||
mCoreConfigMap(&m_config, &m_opts);
|
mCoreConfigMap(&m_config, &m_opts);
|
||||||
|
|
||||||
mSubParserGraphicsInit(&m_subparsers[0], &m_graphicsOpts);
|
mSubParserGraphicsInit(&m_subparsers[0], &m_graphicsOpts);
|
||||||
|
|
Loading…
Reference in New Issue