1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

automatically start start scripts at startup

This commit is contained in:
Marc Zinnschlag 2010-07-04 10:50:19 +02:00
parent 4482884eb5
commit cdcc244fc5

View file

@ -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)