From 39c476134f08f87424e15361a9c918a3a5823a6d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 13 May 2014 16:34:23 -0400 Subject: [PATCH] Hooks - Added ::onLaunch. --- src/Context.cpp | 1 + src/Hooks.cpp | 5 +++++ src/Hooks.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/Context.cpp b/src/Context.cpp index 86b24bc52..786a6e98e 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -223,6 +223,7 @@ int Context::initialize (int argc, const char** argv) // First opportunity to run a hook script. hooks.initialize (); + hooks.onLaunch (); } catch (const std::string& message) diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 7bf981439..0879d614e 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -46,5 +46,10 @@ void Hooks::initialize () // TODO Scan /hooks } +//////////////////////////////////////////////////////////////////////////////// +void Hooks::onLaunch () +{ +} + // TODO Time the hook runs. //////////////////////////////////////////////////////////////////////////////// diff --git a/src/Hooks.h b/src/Hooks.h index 8ce5954a9..0af94d765 100644 --- a/src/Hooks.h +++ b/src/Hooks.h @@ -37,6 +37,8 @@ public: void initialize (); + void onLaunch (); + private: };