summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-16 14:11:46 +0400
committerAlexander Gavrilov2012-03-16 14:11:46 +0400
commit976fa18d721df59d8cb4a0c5b500dec2b3634dcc (patch)
tree429a1d20fec870ad2cbb1b7720293df451a9e0f9 /library/Core.cpp
parentaa7f13266bf9a9ebdbf0eb4f7340400260b225e0 (diff)
downloaddfhack-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/Core.cpp')
-rw-r--r--library/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/Core.cpp b/library/Core.cpp
index 3f76036b..afaf2368 100644
--- a/library/Core.cpp
+++ b/library/Core.cpp
@@ -187,7 +187,7 @@ void fHKthread(void * iodata)
args.erase(args.begin());
command_result cr = plug_mgr->InvokeCommand(out, first, args);
- if(cr == CR_WOULD_BREAK)
+ if(cr == CR_NEEDS_CONSOLE)
{
out.printerr("It isn't possible to run an interactive command outside the console.\n");
}