1
0

config.cpp 536 B

1234567891011121314151617181920212223242526272829
  1. /** (c) Nullsoft, Inc. C O N F I D E N T I A L
  2. ** Filename:
  3. ** Project:
  4. ** Description:
  5. ** Author: Ben Allison [email protected]
  6. ** Created:
  7. **/
  8. #include "main.h"
  9. #include "config.h"
  10. void Config::RegisterGroup(ifc_configgroup *newGroup)
  11. {
  12. if (newGroup)
  13. {
  14. groups[newGroup->GetGUID()]=newGroup;
  15. }
  16. }
  17. ifc_configgroup *Config::GetGroup(GUID groupGUID)
  18. {
  19. return groups[groupGUID];
  20. }
  21. #define CBCLASS Config
  22. START_DISPATCH;
  23. CB(API_CONFIG_GETGROUP, GetGroup)
  24. VCB(API_CONFIG_REGISTERGROUP, RegisterGroup)
  25. END_DISPATCH;