Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. typedef int (*NovintHFX_ExposeInterfaceFn)(void **ppInterface, void *hwnd, const char *cmd, unsigned int versionMaj, unsigned int versionMin, void *pMouseEnableFN, unsigned int TargetDevices);
  2. inline const char *HFX_GetVersionMajorString(){
  3. return HFX_VERSION_MAJOR_SZ;
  4. }
  5. inline const char *HFX_GetVersionMinorString(){
  6. return HFX_VERSION_MINOR_SZ;
  7. }
  8. inline const char *HFX_CONNECT_FUNCTION_NAME(){
  9. return "_export_ExposeInterfaceHFX_" HFX_VERSION_MAJOR_SZ "_" HFX_VERSION_MINOR_SZ "_";
  10. }
  11. inline const char *HFX_CONNECT_FUNCTION_NAME_XML(){
  12. return "_export_ExposeInterfaceHFX_XML_" HFX_VERSION_MAJOR_SZ "_" HFX_VERSION_MINOR_SZ "_";
  13. }
  14. inline const char *HFX_DYNAMIC_LIBRARY_NAME(const unsigned int tries = 0){
  15. switch(tries)
  16. {
  17. default:
  18. return 0;
  19. break;
  20. #ifdef HFX_DLL_CUSTOM_NAME
  21. case 0:
  22. return HFX_DLL_CUSTOM_NAME;
  23. break;
  24. #endif
  25. #ifndef HFX_DLL_CUSTOM_NAME
  26. case 0:
  27. #else
  28. case 1:
  29. #endif
  30. return "NovintHFX_" HFX_VERSION_MAJOR_SZ "." HFX_VERSION_MINOR_SZ ".dll";
  31. break;
  32. #ifndef HFX_DLL_CUSTOM_NAME
  33. case 1:
  34. #else
  35. case 2:
  36. #endif
  37. return "NovintHFX.dll";
  38. break;
  39. };
  40. }
  41. inline unsigned int HFX_GetVersionMajor(){
  42. return HFX_VERSION_MAJOR;
  43. }
  44. inline unsigned int HFX_GetVersionMinor(){
  45. return HFX_VERSION_MINOR;
  46. }
  47. inline double HFX_GetVersion(){
  48. return HFX_VERSION_FLOAT;
  49. }