From dcf0bb7ac823f538e0ea5ed1cdbdf7f3c15d2c65 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 1 Dec 2004 02:48:50 +0000 Subject: [PATCH] move this stuff to where it belongs --- stepmania/src/StepMania.cpp | 4 ---- stepmania/src/arch/ArchHooks/ArchHooks_Xbox.cpp | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index f6ff57f47f..fb153f408b 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -981,10 +981,6 @@ 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; diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Xbox.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_Xbox.cpp index 5695c3b7de..2f6ac7fd16 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_Xbox.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Xbox.cpp @@ -2,6 +2,7 @@ #include "ArchHooks_Xbox.h" #include "dsound.h" // for timeGetTime #include "archutils/Xbox/custom_launch_params.h" // for XGetCustomLaunchData +#include "archutils/Xbox/VirtualMemory.h" #include // for XNetStartup @@ -111,6 +112,10 @@ void EnableExtraRAM() ArchHooks_Xbox::ArchHooks_Xbox() { + _set_new_handler(NoMemory); + _set_new_mode(1); + SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER) CheckPageFault); + XGetCustomLaunchData(); // mount A to DVD, C, E, F, G, X, and Y to the harddisk