Clean up some of the CLI code and add option to load a profile from the command line

This commit is contained in:
Adam Honse 2020-03-22 00:04:27 -05:00
parent 69651b3f91
commit 0ae4964545
3 changed files with 275 additions and 131 deletions

View file

@ -21,7 +21,7 @@ extern std::vector<i2c_smbus_interface*> busses;
extern std::vector<RGBController*> rgb_controllers;
// See cli.cpp
extern int cli_main(int argc, char *argv[], std::vector<RGBController *> rgb_controllers_in);
extern int cli_main(int argc, char *argv[], std::vector<RGBController *> rgb_controllers_in, ProfileManager* profile_manager_in);
/******************************************************************************************\
* *
@ -41,7 +41,7 @@ int main(int argc, char* argv[])
if (argc > 1 && strcmp(argv[1], "--gui"))
{
return cli_main(argc, argv, rgb_controllers);
return cli_main(argc, argv, rgb_controllers, &profile_manager);
}
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);