Xbox: Fix exception handling

This commit is contained in:
Ryan Dortmans
2004-11-18 09:08:48 +00:00
parent 72a7b12469
commit d1a1bb4e88
3 changed files with 4 additions and 35 deletions
+4 -14
View File
@@ -918,21 +918,7 @@ static void ProcessArgsSecond()
}
#ifdef _XBOX
void XboxMain();
void __cdecl main()
{
_set_new_handler(NoMemory);
_set_new_mode(1);
__try
{
XboxMain();
}
__except(CheckPageFault(GetExceptionInformation())) { }
}
void XboxMain()
#else
int main(int argc, char* argv[])
#endif
@@ -940,6 +926,10 @@ int main(int argc, char* argv[])
#if defined(XBOX)
int argc = 1;
char *argv[] = {"default.xbe"};
_set_new_handler(NoMemory);
_set_new_mode(1);
SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER) CheckPageFault);
#endif
g_argc = argc;