mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
automatically start start scripts at startup
This commit is contained in:
parent
4482884eb5
commit
cdcc244fc5
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@ namespace MWScript
|
||||||
: mStore (store), mScriptManager (scriptManager)
|
: mStore (store), mScriptManager (scriptManager)
|
||||||
{
|
{
|
||||||
addScript ("Main");
|
addScript ("Main");
|
||||||
|
|
||||||
|
for (ESMS::RecListT<ESM::StartScript>::MapType::const_iterator iter
|
||||||
|
(store.startScripts.list.begin());
|
||||||
|
iter != store.startScripts.list.end(); ++iter)
|
||||||
|
addScript (iter->second.script);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GlobalScripts::addScript (const std::string& name)
|
void GlobalScripts::addScript (const std::string& name)
|
||||||
|
|
Loading…
Reference in a new issue