2026-02-06 13:01:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
// SPDX-FileCopyrightText: 2026 A-La-Karte Contributors
|
|
|
|
|
|
2026-02-09 13:03:01 +00:00
|
|
|
#include <QCommandLineOption>
|
|
|
|
|
#include <QCommandLineParser>
|
2026-02-06 13:01:35 +00:00
|
|
|
#include <QCoreApplication>
|
|
|
|
|
|
|
|
|
|
#include "gamecenterdaemon.h"
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QCoreApplication app(argc, argv);
|
|
|
|
|
|
2026-02-09 13:03:01 +00:00
|
|
|
QCommandLineParser parser;
|
|
|
|
|
parser.setApplicationDescription(QStringLiteral("A-La-Karte Game Center"));
|
|
|
|
|
parser.addHelpOption();
|
|
|
|
|
parser.addOption(QCommandLineOption(QStringLiteral("system"), QStringLiteral("Run as system bus proxy")));
|
|
|
|
|
parser.process(app);
|
|
|
|
|
|
|
|
|
|
if (parser.isSet(QStringLiteral("system"))) {
|
|
|
|
|
GameCenterSystemProxy proxy;
|
|
|
|
|
if (!proxy.init()) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-06 13:01:35 +00:00
|
|
|
GameCenterDaemon daemon;
|
|
|
|
|
if (!daemon.init()) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|