From 608261a15280896d5bc478a098f7931c189ce1e5 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 12 Aug 2006 22:06:19 +0000 Subject: [PATCH] Add optional Init(). This can be used so that HOOKS is set and accessible during the child crash handler by moving that code to Init(). --- stepmania/src/StepMania.cpp | 2 +- stepmania/src/arch/ArchHooks/ArchHooks.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 665eb52565..58e61694bc 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -917,7 +917,7 @@ int main(int argc, char* argv[]) /* Set up arch hooks first. This may set up crash handling. */ HOOKS = MakeArchHooks(); - + HOOKS->Init(); #if !defined(DEBUG) /* Tricky: for other exceptions, we want a backtrace. To do this in Windows, * we need to catch the exception and force a crash. The call stack is still diff --git a/stepmania/src/arch/ArchHooks/ArchHooks.h b/stepmania/src/arch/ArchHooks/ArchHooks.h index 3d765e9bd2..b7d9eb08d5 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks.h +++ b/stepmania/src/arch/ArchHooks/ArchHooks.h @@ -5,7 +5,7 @@ class ArchHooks { public: virtual ~ArchHooks() { } - + virtual void Init() { } /* * Return the general name of the architecture, eg. "Windows", "OS X", "Unix". */