Merge pull request #788 from eightyeight/return-status-code

Allow return status to be specified using quitWithStatus
This commit is contained in:
Daniel Buckmaster 2014-10-24 00:31:05 +11:00
commit 2f416290ab
13 changed files with 52 additions and 18 deletions

View file

@ -623,6 +623,11 @@ bool StandardMainLoop::doMainLoop()
return keepRunning;
}
S32 StandardMainLoop::getReturnStatus()
{
return Process::getReturnStatus();
}
void StandardMainLoop::setRestart(bool restart )
{
gRequiresRestart = restart;

View file

@ -41,6 +41,9 @@ public:
/// Shut down the core libraries and call registered shutdown fucntions.
static void shutdown();
/// Gets the return status code of the current process.
static S32 getReturnStatus();
static void setRestart( bool restart );
static bool requiresRestart();