| 50 | } |
| 51 | |
| 52 | AlienFX_SDK::Afx_group* ConfigHandler::FindCreateGroup(int groupID) { |
| 53 | AlienFX_SDK::Afx_group* grp = nullptr; |
| 54 | if (groupID < 0) |
| 55 | groupID = 0x1ffff; |
| 56 | |
| 57 | if (!(grp = afx_dev.GetGroupById(groupID))) { |
| 58 | afx_dev.GetGroups()->push_back({ (DWORD)groupID, "New zone #" + to_string((groupID & 0xffff) + 1) }); |
| 59 | grp = &afx_dev.GetGroups()->back(); |
| 60 | } |
| 61 | |
| 62 | return grp; |
| 63 | } |
| 64 | |
| 65 | groupset* ConfigHandler::FindCreateGroupSet(int profID, int groupID) |
| 66 | { |
no test coverage detected