diff options
| author | Alexander Gavrilov | 2012-03-16 14:11:46 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-16 14:11:46 +0400 |
| commit | 976fa18d721df59d8cb4a0c5b500dec2b3634dcc (patch) | |
| tree | 429a1d20fec870ad2cbb1b7720293df451a9e0f9 /library/PluginManager.cpp | |
| parent | aa7f13266bf9a9ebdbf0eb4f7340400260b225e0 (diff) | |
| download | dfhack-976fa18d721df59d8cb4a0c5b500dec2b3634dcc.tar.gz dfhack-976fa18d721df59d8cb4a0c5b500dec2b3634dcc.tar.bz2 dfhack-976fa18d721df59d8cb4a0c5b500dec2b3634dcc.tar.xz | |
A number of interface tweaks in RemoteClient.
- Associate a default output stream with the whole connection.
If not explicitly specified in the constructor, uses stdout.
- Add methods that use this default stream to RemoteFunction.
- Add easily usable wrappers for CoreSuspend and CoreResume.
Diffstat (limited to 'library/PluginManager.cpp')
| -rw-r--r-- | library/PluginManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/PluginManager.cpp b/library/PluginManager.cpp index f7af9c95..565a0c2a 100644 --- a/library/PluginManager.cpp +++ b/library/PluginManager.cpp @@ -291,7 +291,7 @@ command_result Plugin::invoke(color_ostream &out, const std::string & command, s { // running interactive things from some other source than the console would break it if(!out.is_console() && cmd.interactive) - cr = CR_WOULD_BREAK; + cr = CR_NEEDS_CONSOLE; else if (cmd.guard) { // Execute hotkey commands in a way where they can |
