src/platform/qt/GBAOverride.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 "GBAOverride.h"
7
8extern "C" {
9#include "core/core.h"
10}
11
12using namespace QGBA;
13
14void GBAOverride::apply(struct mCore* core) {
15 if (core->platform(core) != PLATFORM_GBA) {
16 return;
17 }
18 GBAOverrideApply(static_cast<GBA*>(core->board), &override);
19}
20
21void GBAOverride::save(struct Configuration* config) const {
22 GBAOverrideSave(config, &override);
23}