Hooks
- Added ::onLaunch.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -46,5 +46,10 @@ void Hooks::initialize ()
|
||||
// TODO Scan <rc.data.location>/hooks
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Hooks::onLaunch ()
|
||||
{
|
||||
}
|
||||
|
||||
// TODO Time the hook runs.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -37,6 +37,8 @@ public:
|
||||
|
||||
void initialize ();
|
||||
|
||||
void onLaunch ();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user