Counter Strike : Global Offensive Source Code
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.

41 lines
1.0 KiB

  1. //========= Copyright � 1996-2006, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "pch_tier0.h"
  8. #if defined(_WIN32) && !defined(_X360)
  9. #define WINDOWS_LEAN_AND_MEAN
  10. #define _WIN32_WINNT 0x0403
  11. #include <windows.h>
  12. #endif
  13. #include <assert.h>
  14. #include "tier0/platform.h"
  15. #include "tier0/progressbar.h"
  16. #if !defined(STEAM) && !defined(NO_MALLOC_OVERRIDE)
  17. #include "tier0/memalloc.h"
  18. // memdbgon must be the last include file in a .cpp file!!!
  19. #include "tier0/memdbgon.h"
  20. #endif
  21. static ProgressReportHandler_t pReportHandlerFN;
  22. PLATFORM_INTERFACE void ReportProgress(char const *job_name, int total_units_to_do, int n_units_completed)
  23. {
  24. if ( pReportHandlerFN )
  25. (*pReportHandlerFN)( job_name, total_units_to_do, n_units_completed );
  26. }
  27. PLATFORM_INTERFACE ProgressReportHandler_t InstallProgressReportHandler( ProgressReportHandler_t pfn)
  28. {
  29. ProgressReportHandler_t old = pReportHandlerFN;
  30. pReportHandlerFN = pfn;
  31. return old;
  32. }