diff options
| author | Petr Mrázek | 2011-07-20 20:58:19 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-20 20:58:19 +0200 |
| commit | 873cbd8388ac2f2741d8aed7db515fb5699d0c70 (patch) | |
| tree | ece3ff15bcba86092c8fea7237ddef22f12cb5b4 /library/PluginManager.cpp | |
| parent | 0defcc9889c41b035b110c4ec40cc3773baad185 (diff) | |
| download | dfhack-873cbd8388ac2f2741d8aed7db515fb5699d0c70.tar.gz dfhack-873cbd8388ac2f2741d8aed7db515fb5699d0c70.tar.bz2 dfhack-873cbd8388ac2f2741d8aed7db515fb5699d0c70.tar.xz | |
Make 'die' plugin a builtin, made the console interaction less confusing.
Diffstat (limited to 'library/PluginManager.cpp')
| -rw-r--r-- | library/PluginManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/PluginManager.cpp b/library/PluginManager.cpp index 4caff02e..99a01ea2 100644 --- a/library/PluginManager.cpp +++ b/library/PluginManager.cpp @@ -196,7 +196,7 @@ bool Plugin::load() plugin_status = (command_result (*)(Core *, std::string &)) LookupPlugin(plug, "plugin_status"); plugin_onupdate = (command_result (*)(Core *)) LookupPlugin(plug, "plugin_onupdate"); plugin_shutdown = (command_result (*)(Core *)) LookupPlugin(plug, "plugin_shutdown"); - name = _PlugName(); + //name = _PlugName(); plugin_lib = plug; if(plugin_init(&c,commands) == CR_OK) { @@ -322,6 +322,8 @@ PluginManager::PluginManager(Core * core) { Plugin * p = new Plugin(core, path + filez[i], filez[i], this); all_plugins.push_back(p); + // make all plugins load by default (until a proper design emerges). + p->load(); } } } |
