/******************************************************************************************\ * * * main.cpp * * * * Main function for OpenAuraSDK GUI project * * * \******************************************************************************************/ #include "OpenRGB.h" #include "RGBController.h" #include "i2c_smbus.h" #include #include #include #include "OpenRGBDialog2.h" extern std::vector busses; extern std::vector rgb_controllers; // See cli.cpp extern int cli_main(int argc, char *argv[]); /******************************************************************************************\ * * * main * * * * Main function. Detects busses and Aura controllers, then opens the main window * * * \******************************************************************************************/ int main(int argc, char* argv[]) { if (argc > 1 && strcmp(argv[1], "--gui")) { return cli_main(argc, argv); } DetectRGBControllers(); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv); Ui::OpenRGBDialog2 dlg(busses, rgb_controllers); dlg.show(); return a.exec(); }