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
44 lines
1.1 KiB
#include "platform.h"
|
|
#include "basetypes.h"
|
|
#include "dbg.h"
|
|
#include "logging.h"
|
|
#include <cellstatus.h>
|
|
#include <sys/prx.h>
|
|
#include "ps3/ps3_helpers.h"
|
|
|
|
|
|
#ifdef _DEBUG
|
|
#define launcher_ps3 launcher_dbg
|
|
#else
|
|
#define launcher_ps3 launcher_rel
|
|
#endif
|
|
|
|
|
|
PS3_PRX_SYS_MODULE_INFO_FULLMACROREPLACEMENTHELPER( launcher );
|
|
SYS_MODULE_START( _launcher_ps3_prx_entry );
|
|
|
|
|
|
|
|
int LauncherMain( int argc, char **argv );
|
|
|
|
void Launcher_ShutdownCallback()
|
|
{
|
|
LoggingSystem_ResetCurrentLoggingState(); // tear down all logging listeners
|
|
}
|
|
|
|
// An exported function is needed to generate the project's PRX stub export library
|
|
extern "C" int _launcher_ps3_prx_entry( unsigned int args, void *pArg )
|
|
{
|
|
Assert( args >= sizeof( PS3_LoadLauncher_Parameters_t ) );
|
|
|
|
PS3_LoadLauncher_Parameters_t *pParams = reinterpret_cast< PS3_LoadLauncher_Parameters_t * >( pArg );
|
|
Assert( pParams->cbSize >= sizeof( PS3_LoadLauncher_Parameters_t ) );
|
|
|
|
pParams->pfnLauncherMain = LauncherMain;
|
|
|
|
// Return tier0 shutdown callback
|
|
pParams->pfnLauncherShutdown = Launcher_ShutdownCallback;
|
|
|
|
return SYS_PRX_RESIDENT;
|
|
}
|
|
|