all repos — mgba @ d3678471f681215765877d4d8be91ac4bbe768ff

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2014 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
 7// This must be defined before anything else is included.
 8#define SDL_MAIN_HANDLED
 9
10#include "GBAApp.h"
11#include "Window.h"
12
13#include <mgba/core/version.h>
14
15#ifdef QT_STATIC
16#include <QtPlugin>
17#ifdef _WIN32
18Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
19#ifdef BUILD_QT_MULTIMEDIA
20Q_IMPORT_PLUGIN(QWindowsAudioPlugin);
21#endif
22#endif
23#endif
24
25int main(int argc, char* argv[]) {
26#ifdef BUILD_SDL
27	SDL_SetMainReady();
28#endif
29	QGBA::GBAApp application(argc, argv);
30
31	return application.exec();
32}