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.
|
// First opportunity to run a hook script.
|
||||||
hooks.initialize ();
|
hooks.initialize ();
|
||||||
|
hooks.onLaunch ();
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (const std::string& message)
|
catch (const std::string& message)
|
||||||
|
|||||||
@@ -46,5 +46,10 @@ void Hooks::initialize ()
|
|||||||
// TODO Scan <rc.data.location>/hooks
|
// TODO Scan <rc.data.location>/hooks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void Hooks::onLaunch ()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// TODO Time the hook runs.
|
// TODO Time the hook runs.
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ public:
|
|||||||
|
|
||||||
void initialize ();
|
void initialize ();
|
||||||
|
|
||||||
|
void onLaunch ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user