diff options
| author | Alexander Gavrilov | 2012-03-15 13:01:23 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-15 13:01:23 +0400 |
| commit | 87f925e72e7c6f923a595cc930728483a3f1422e (patch) | |
| tree | 4da81e9346e9f21599cea8c7a2d95d8da4628e2e /library/Core.cpp | |
| parent | e7851f5abdd1a84d29020f2789efc0f932284bf0 (diff) | |
| download | dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.gz dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.bz2 dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.xz | |
Add support for exporting functions from plugins, with example in rename.
TODO: test by actually calling them remotely.
Diffstat (limited to 'library/Core.cpp')
| -rw-r--r-- | library/Core.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/Core.cpp b/library/Core.cpp index 6f04f5ed..793a6368 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -165,7 +165,7 @@ void fHKthread(void * iodata) string first = args[0]; args.erase(args.begin()); - command_result cr = plug_mgr->InvokeCommand(out, first, args, false); + command_result cr = plug_mgr->InvokeCommand(out, first, args); if(cr == CR_WOULD_BREAK) { @@ -272,7 +272,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue for(size_t i = 0; i < plug_mgr->size();i++) { Plugin * plug = (plug_mgr->operator[](i)); - plug->load(); + plug->load(con); } } else @@ -284,7 +284,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue } else { - plug->load(); + plug->load(con); } } } @@ -299,7 +299,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue for(size_t i = 0; i < plug_mgr->size();i++) { Plugin * plug = (plug_mgr->operator[](i)); - plug->reload(); + plug->reload(con); } } else @@ -311,7 +311,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue } else { - plug->reload(); + plug->reload(con); } } } @@ -326,7 +326,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue for(size_t i = 0; i < plug_mgr->size();i++) { Plugin * plug = (plug_mgr->operator[](i)); - plug->unload(); + plug->unload(con); } } else @@ -338,7 +338,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue } else { - plug->unload(); + plug->unload(con); } } } |
