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/dfhack-run.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/dfhack-run.cpp')
| -rw-r--r-- | library/dfhack-run.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/dfhack-run.cpp b/library/dfhack-run.cpp index 16c6087e..f79e49a3 100644 --- a/library/dfhack-run.cpp +++ b/library/dfhack-run.cpp @@ -68,7 +68,7 @@ int main (int argc, char *argv[]) } // Connect to DFHack - RemoteClient client; + RemoteClient client(&out); if (!client.connect()) return 2; @@ -77,7 +77,7 @@ int main (int argc, char *argv[]) for (int i = 2; i < argc; i++) args.push_back(argv[i]); - command_result rv = client.run_command(out, argv[1], args); + command_result rv = client.run_command(argv[1], args); if (rv != CR_OK) { if (rv == CR_NOT_IMPLEMENTED) |
