Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 854 Bytes
#include "mainwindow.h"
#include "themeprovider.h"
#include <QApplication>
#include <QStyleFactory>
#include "redasmsettings.h"
#ifdef QT_DEBUG
#include "unittest/unittest.h"
#endif // QT_DEBUG
int main(int argc, char *argv[])
{
#ifdef QT_DEBUG
if((argc == 2) && !std::strcmp(argv[1], "--testmode"))
return UnitTest::run();
#endif // QT_DEBUG
qRegisterMetaType<u64>("u64");
qRegisterMetaType<address_t>("address_t");
QApplication::setStyle(QStyleFactory::create("Fusion"));
QApplication a(argc, argv);
a.setOrganizationName("redasm.io");
a.setApplicationName("redasm");
a.setApplicationDisplayName("REDasm 2.1.1-" + QString::fromUtf8(REDASM_VERSION));
REDasmSettings::setDefaultFormat(REDasmSettings::IniFormat);
ThemeProvider::applyTheme();
MainWindow w;
w.show();
return a.exec();
}
You can’t perform that action at this time.