feat: add support to specifying start_dir to processes

This commit is contained in:
Felipe Cavalcanti
2021-08-24 15:23:47 -03:00
parent 7a920da06d
commit f38bbf90bb
3 changed files with 35 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ struct cmd_t {
* cmd -- Runs indefinitely until:
* No session is running and a different set of commands it to be executed
* Command exits
* starting_dir -- the process starting dir. This is required for some games to run properly.
* cmd_output --
* empty -- The output of the commands are appended to the output of sunshine
* "null" -- The output of the commands are discarded
@@ -52,6 +53,7 @@ struct ctx_t {
std::string name;
std::string cmd;
std::string starting_dir;
std::string output;
};