all repos — mgba @ bea6235c0a7a0c99362564eeda357d7109886211

mGBA Game Boy Advance Emulator

src/platform/qt/GBOverride.cpp (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include "GBOverride.h"
 7
 8extern "C" {
 9#include "core/core.h"
10}
11
12using namespace QGBA;
13
14void GBOverride::apply(struct mCore* core) {
15	if (core->platform(core) != PLATFORM_GB) {
16		return;
17	}
18	GBOverrideApply(static_cast<GB*>(core->board), &override);
19}
20
21void GBOverride::save(struct Configuration* config) const {
22	GBOverrideSave(config, &override);
23}