mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Split OS::execute into two methods
1. execute(): Executes a command and returns the results. 2. create_process(): Creates a new process and returns the new process' id.
This commit is contained in:
parent
98ccaa1bad
commit
2a74b388d0
28 changed files with 223 additions and 192 deletions
|
@ -104,7 +104,7 @@ static void handle_crash(int sig) {
|
|||
|
||||
// Try to get the file/line number using addr2line
|
||||
int ret;
|
||||
Error err = OS::get_singleton()->execute(String("addr2line"), args, true, nullptr, &output, &ret);
|
||||
Error err = OS::get_singleton()->execute(String("addr2line"), args, &output, &ret);
|
||||
if (err == OK) {
|
||||
output.erase(output.length() - 1, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue