mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05: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:
@@ -617,7 +617,7 @@ MainLoop *test() {
|
||||
|
||||
List<String> args;
|
||||
args.push_back("-l");
|
||||
Error err = OS::get_singleton()->execute("/bin/ls", args, true, nullptr, &ret);
|
||||
Error err = OS::get_singleton()->execute("/bin/ls", args, &ret);
|
||||
print_line("error: " + itos(err));
|
||||
print_line(ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user