MCPcopy Create free account
hub / github.com/T-Troll/alienfx-tools / FindCreateGroup

Method FindCreateGroup

alienfx-gui/ConfigHandler.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52AlienFX_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
65groupset* ConfigHandler::FindCreateGroupSet(int profID, int groupID)
66{

Callers 4

UpdateZoneListFunction · 0.80
RecalcGridZoneFunction · 0.80
TabGridFunction · 0.80
FindCreateMappingGroupFunction · 0.80

Calls 2

GetGroupByIdMethod · 0.80
GetGroupsMethod · 0.80

Tested by

no test coverage detected