Do not save virtual or remote devices to sizes.ors
This commit is contained in:
parent
bb79fbfc07
commit
8fbde8073d
1 changed files with 10 additions and 0 deletions
|
|
@ -83,6 +83,16 @@ bool ProfileManager::SaveProfile(std::string profile_name, bool sizes)
|
|||
\*---------------------------------------------------------*/
|
||||
for(std::size_t controller_index = 0; controller_index < controllers.size(); controller_index++)
|
||||
{
|
||||
/*-----------------------------------------------------*\
|
||||
| Ignore remote and virtual controllers when saving |
|
||||
| sizes |
|
||||
\*-----------------------------------------------------*/
|
||||
if(sizes && (controllers[controller_index]->flags & CONTROLLER_FLAG_REMOTE
|
||||
|| controllers[controller_index]->flags & CONTROLLER_FLAG_VIRTUAL))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
unsigned char *controller_data = controllers[controller_index]->GetDeviceDescription(profile_version);
|
||||
unsigned int controller_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue