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.

44 lines
1.1 KiB

  1. #include "platform.h"
  2. #include "basetypes.h"
  3. #include "dbg.h"
  4. #include "logging.h"
  5. #include <cellstatus.h>
  6. #include <sys/prx.h>
  7. #include "ps3/ps3_helpers.h"
  8. #ifdef _DEBUG
  9. #define launcher_ps3 launcher_dbg
  10. #else
  11. #define launcher_ps3 launcher_rel
  12. #endif
  13. PS3_PRX_SYS_MODULE_INFO_FULLMACROREPLACEMENTHELPER( launcher );
  14. SYS_MODULE_START( _launcher_ps3_prx_entry );
  15. int LauncherMain( int argc, char **argv );
  16. void Launcher_ShutdownCallback()
  17. {
  18. LoggingSystem_ResetCurrentLoggingState(); // tear down all logging listeners
  19. }
  20. // An exported function is needed to generate the project's PRX stub export library
  21. extern "C" int _launcher_ps3_prx_entry( unsigned int args, void *pArg )
  22. {
  23. Assert( args >= sizeof( PS3_LoadLauncher_Parameters_t ) );
  24. PS3_LoadLauncher_Parameters_t *pParams = reinterpret_cast< PS3_LoadLauncher_Parameters_t * >( pArg );
  25. Assert( pParams->cbSize >= sizeof( PS3_LoadLauncher_Parameters_t ) );
  26. pParams->pfnLauncherMain = LauncherMain;
  27. // Return tier0 shutdown callback
  28. pParams->pfnLauncherShutdown = Launcher_ShutdownCallback;
  29. return SYS_PRX_RESIDENT;
  30. }