mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-05 06:34:25 -04:00
Clean up some of the CLI code and add option to load a profile from the command line
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user