mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-10 17:08:59 -04:00
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:
@@ -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 |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user