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.

71 lines
2.2 KiB

  1. #include <cellstatus.h>
  2. #include <sys/prx.h>
  3. #include <sys/exportcplusplus.h>
  4. #include <stdio.h>
  5. #include "tier0/threadtools.h"
  6. #include "vstdlib/random.h"
  7. #include "ps3/ps3_helpers.h"
  8. #ifdef _DEBUG
  9. #define vstdlib_ps3 vstdlib_dbg
  10. #else
  11. #define vstdlib_ps3 vstdlib_rel
  12. #endif
  13. // macro to redirect name substitution
  14. PS3_PRX_SYS_MODULE_INFO_FULLMACROREPLACEMENTHELPER( vstdlib );
  15. SYS_MODULE_START( _vstdlib_ps3_prx_entry );
  16. SYS_LIB_DECLARE( vstdlib_ps3, SYS_LIB_AUTO_EXPORT | SYS_LIB_WEAK_IMPORT );
  17. SYS_LIB_EXPORT( RandomSeed, vstdlib_ps3 );
  18. SYS_LIB_EXPORT( RandomFloat, vstdlib_ps3 );
  19. SYS_LIB_EXPORT( RandomFloatExp, vstdlib_ps3 );
  20. SYS_LIB_EXPORT( RandomInt, vstdlib_ps3 );
  21. SYS_LIB_EXPORT( RandomGaussianFloat, vstdlib_ps3 );
  22. SYS_LIB_EXPORT( InstallUniformRandomStream, vstdlib_ps3 );
  23. SYS_LIB_EXPORT( KeyValuesSystem, vstdlib_ps3 );
  24. SYS_LIB_EXPORT( VStdLib_GetICVarFactory, vstdlib_ps3 );
  25. SYS_LIB_EXPORT( RunThreadPoolTests, vstdlib_ps3 );
  26. SYS_LIB_EXPORT( CreateNewThreadPool, vstdlib_ps3 );
  27. SYS_LIB_EXPORT( DestroyThreadPool, vstdlib_ps3 );
  28. SYS_LIB_EXPORT_VAR( g_pThreadPool, vstdlib_ps3 );
  29. SYS_LIB_EXPORT( V_UTF8ToUnicode, vstdlib_ps3 );
  30. SYS_LIB_EXPORT( V_UnicodeToUTF8, vstdlib_ps3 );
  31. SYS_LIB_EXPORT( V_UCS2ToUnicode, vstdlib_ps3 );
  32. SYS_LIB_EXPORT( V_UCS2ToUTF8, vstdlib_ps3 );
  33. SYS_LIB_EXPORT( V_UnicodeToUCS2, vstdlib_ps3 );
  34. SYS_LIB_EXPORT( V_UTF8ToUCS2, vstdlib_ps3 );
  35. SYS_LIB_EXPORT( V_UTF8_strncpy, vstdlib_ps3 );
  36. SYS_LIB_EXPORT( Coroutine_Create, vstdlib_ps3 );
  37. SYS_LIB_EXPORT( Coroutine_Continue, vstdlib_ps3 );
  38. SYS_LIB_EXPORT( Coroutine_YieldToMain, vstdlib_ps3 );
  39. SYS_LIB_EXPORT( Coroutine_DebugAssert, vstdlib_ps3 );
  40. SYS_LIB_EXPORT( Coroutine_DebugBreak, vstdlib_ps3 );
  41. // BEGIN PICKUP
  42. // You must run build_prxexport_snc.bat AFTER building vstdlib to regenerate prxexport.c, and THEN rebuild vstdlib again for the changes to take effect.
  43. // This is required to get C++ class exports working
  44. SYS_LIB_EXPORTPICKUP_CLASS( "CUniformRandomStream@", vstdlib_ps3 );
  45. SYS_LIB_EXPORTPICKUP_CLASS( "CGaussianRandomStream@", vstdlib_ps3 );
  46. // END PICKUP
  47. extern "C" int _vstdlib_ps3_prx_entry( unsigned int args, void *pArg )
  48. {
  49. return SYS_PRX_RESIDENT;
  50. }
  51. void _vstdlib_ps3_prx_required_for_linking()
  52. {
  53. }