Clean up some of the CLI code and add option to load a profile from the command line
This commit is contained in:
parent
69651b3f91
commit
0ae4964545
3 changed files with 275 additions and 131 deletions
4
main.cpp
4
main.cpp
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue