feat(pty): parse env so it can be used with fork

Adds method to convert env from a Dictionary to a PackedStringArray so
it can be used with fork(). Consider making env a PackedStringArray to
begin with.
This commit is contained in:
Leroy Hopson 2024-02-25 22:09:04 +13:00
parent 8cd11fdae6
commit ee920a45fd
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 14 additions and 1 deletions

View file

@ -82,6 +82,7 @@ namespace godot
String _get_fork_file(const String &file) const;
Dictionary _get_fork_env() const;
PackedStringArray _parse_env(const Dictionary &env) const;
void _on_exit(int exit_code, int exit_signal);
void _close();