Added set_environment to OS class

This commit is contained in:
Ignacio Etcheverry
2019-01-29 22:59:38 +01:00
parent d3c51a5dfb
commit 41873ffa88
7 changed files with 19 additions and 0 deletions

View File

@ -2604,6 +2604,11 @@ String OS_Windows::get_environment(const String &p_var) const {
return "";
}
bool OS_Windows::set_environment(const String &p_var, const String &p_value) const {
return (bool)SetEnvironmentVariableW(p_var.c_str(), p_value.c_str());
}
String OS_Windows::get_stdin_string(bool p_block) {
if (p_block) {