Fixing --help string for -p option
* Tweaked the profile mananger to allow to load profiles either with or without the file extension * Changed the --help string to reflect the change
This commit is contained in:
parent
69cb7a0d9e
commit
d65def0179
2 changed files with 2 additions and 4 deletions
|
|
@ -133,7 +133,7 @@ std::vector<RGBController*> ProfileManager::LoadProfileToList
|
|||
}
|
||||
else
|
||||
{
|
||||
filename += ".orp";
|
||||
filename += ((filename.substr(filename.size() - 4)==".orp") ? "" : ".orp");
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
|
|
@ -318,8 +318,6 @@ bool ProfileManager::LoadProfileWithOptions
|
|||
std::vector<bool> temp_controller_used;
|
||||
bool ret_val = false;
|
||||
|
||||
std::string filename = configuration_directory + profile_name + ".orp";
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Get the list of controllers from the resource manager |
|
||||
\*---------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue