2013-12-02 11:09:56 +01:00
|
|
|
#include "MultiMC.h"
|
2015-02-09 01:51:14 +01:00
|
|
|
#include "MainWindow.h"
|
2016-08-11 00:44:01 +02:00
|
|
|
#include "LaunchController.h"
|
2015-09-30 00:11:00 +02:00
|
|
|
#include <InstanceList.h>
|
|
|
|
#include <QDebug>
|
2013-12-02 11:09:56 +01:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
// initialize Qt
|
|
|
|
MultiMC app(argc, argv);
|
|
|
|
|
2014-01-19 04:52:34 +01:00
|
|
|
Q_INIT_RESOURCE(instances);
|
|
|
|
Q_INIT_RESOURCE(multimc);
|
|
|
|
Q_INIT_RESOURCE(backgrounds);
|
2014-05-08 19:05:07 +02:00
|
|
|
Q_INIT_RESOURCE(versions);
|
2013-12-02 11:09:56 +01:00
|
|
|
|
2014-05-25 03:22:17 +02:00
|
|
|
Q_INIT_RESOURCE(pe_dark);
|
|
|
|
Q_INIT_RESOURCE(pe_light);
|
2014-10-26 23:44:20 +01:00
|
|
|
Q_INIT_RESOURCE(pe_blue);
|
|
|
|
Q_INIT_RESOURCE(pe_colored);
|
2014-10-27 00:15:52 +01:00
|
|
|
Q_INIT_RESOURCE(OSX);
|
|
|
|
Q_INIT_RESOURCE(iOS);
|
2014-05-09 17:33:32 -05:00
|
|
|
|
2013-12-02 11:09:56 +01:00
|
|
|
switch (app.status())
|
|
|
|
{
|
|
|
|
case MultiMC::Initialized:
|
2016-10-30 02:37:38 +01:00
|
|
|
return app.exec();
|
2013-12-02 11:09:56 +01:00
|
|
|
case MultiMC::Failed:
|
|
|
|
return 1;
|
|
|
|
case MultiMC::Succeeded:
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|