diff options
| author | Alexander Gavrilov | 2012-03-31 15:40:54 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-31 15:40:54 +0400 |
| commit | 0f41608ed4b808205dd8734bbc52de64f6501c98 (patch) | |
| tree | 63229bc9c5cf3c37be28b062bae951bcfae8fb33 /library/Core.cpp | |
| parent | 9384f0c842f817bf810b34e44bfa3be913e7e3fc (diff) | |
| download | dfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.gz dfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.bz2 dfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.xz | |
Pull console output support and REPL out of dfusion into core lib.
Diffstat (limited to 'library/Core.cpp')
| -rw-r--r-- | library/Core.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/Core.cpp b/library/Core.cpp index 4712be0a..8adbf374 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -757,6 +757,16 @@ std::string Core::getHotkeyCmd( void ) return returner; } +void Core::print(const char *format, ...) +{ + color_ostream_proxy proxy(getInstance().con); + + va_list args; + va_start(args,format); + proxy.vprint(format,args); + va_end(args); +} + void Core::printerr(const char *format, ...) { color_ostream_proxy proxy(getInstance().con); |
