diff options
| author | Andrew Lamoureux <andrew@vector35.com> | 2016-09-06 13:08:33 -0400 |
|---|---|---|
| committer | Andrew Lamoureux <andrew@vector35.com> | 2016-09-06 13:08:33 -0400 |
| commit | 2e2c0fad51051871642f10f57cc0db96dd58a2ad (patch) | |
| tree | dffeb8e397bbbcd07515a5d5fec98b5d06483912 /binaryninjaapi.cpp | |
| parent | 89c2a2faabb7344c4bd540c7f14420a34326cfaf (diff) | |
ExecuteWorkerProcess new parms: out,err text,bin
Diffstat (limited to 'binaryninjaapi.cpp')
| -rw-r--r-- | binaryninjaapi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index 71a5a8f7..1a9f5713 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -93,7 +93,7 @@ string BinaryNinja::GetPathRelativeToUserPluginDirectory(const string& rel) bool BinaryNinja::ExecuteWorkerProcess(const string& path, const vector<string>& args, const DataBuffer& input, - string& output, string& errors) + string& output, string& errors, bool stdoutIsText, bool stderrIsText) { const char** argArray = new const char*[args.size() + 1]; for (size_t i = 0; i < args.size(); i++) @@ -102,7 +102,8 @@ bool BinaryNinja::ExecuteWorkerProcess(const string& path, const vector<string>& char* outputStr; char* errorStr; - bool result = BNExecuteWorkerProcess(path.c_str(), argArray, input.GetBufferObject(), &outputStr, &errorStr); + bool result = BNExecuteWorkerProcess(path.c_str(), argArray, input.GetBufferObject(), &outputStr, &errorStr, + stdoutIsText, stderrIsText); output = outputStr; errors = errorStr; |
