VideoConfigGroup.cpp 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "VideoConfigGroup.h"
  10. #include "WinampAttributes.h"
  11. ifc_configitem *VideoConfigGroup::GetItem(const wchar_t *name)
  12. {
  13. if (!wcscmp(name, L"overlay"))
  14. return &config_video_overlays;
  15. else if (!wcscmp(name, L"YV12"))
  16. return &config_video_yv12;
  17. else if (!wcscmp(name, L"vsync"))
  18. return &config_video_vsync2;
  19. else if (!wcscmp(name, L"ddraw"))
  20. return &config_video_ddraw;
  21. else if (!wcscmp(name, L"gdiplus"))
  22. return &config_video_gdiplus;
  23. else if (!wcscmp(name, L"autoopen"))
  24. return &config_video_autoopen;
  25. else if (!wcscmp(name, L"autoclose"))
  26. return &config_video_autoclose;
  27. else if (!wcscmp(name, L"auto_fs"))
  28. return &config_video_auto_fs;
  29. return 0;
  30. }
  31. #define CBCLASS VideoConfigGroup
  32. START_DISPATCH;
  33. CB(IFC_CONFIGGROUP_GETITEM, GetItem)
  34. CB(IFC_CONFIGGROUP_GETGUID, GetGUID)
  35. END_DISPATCH;
  36. #undef CBCLASS