Guest User

Untitled

a guest
Oct 11th, 2020
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local aSettings = {
  2. { cvar="sys_iGPUVendorID" },
  3. { cvar="sys_strPlatform" },
  4. { cvar="gfx_iDriverVersion" },
  5. { cvar="gfx_iReqDriverVersion" },
  6. { cvar="gfx_iAPI" },
  7. { cvar="gfx_bWrongDriver" }
  8. }
  9.  
  10. -- vendor IDs
  11.  
  12. local VID_NVIDIA = 0x10DE;
  13. local VID_ATI = 0x1002;
  14. local VID_INTEL = 0x8086; -- (0x163C?)
  15. local VID_S3 = 0x5333;
  16. local VID_MATROX = 0x102B;
  17. local VID_VIA = 0x1106;
  18. local VID_XGI = 0x18CA;
  19. local VID_STMICRO = 0x121A;
  20. local VID_3DFX = 0x104A;
  21.  
  22. gfx_iDriverVersion=1000
  23.  
  24. -- assume no driver version detection
  25. gfx_iReqDriverVersion = 0;
  26. gfx_bWrongDriver = 0;
  27.  
  28. -- so, if driver version is too old
  29. if gfx_iDriverVersion<gfx_iReqDriverVersion then
  30.  
  31. -- signal that to engine
  32. gfx_bWrongDriver = 1;
  33.  
  34. end
RAW Paste Data