mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Expose set_environment to GDScript
This commit is contained in:
		
							parent
							
								
									d33ee6fa95
								
							
						
					
					
						commit
						e9ce9a8422
					
				
					 3 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -548,6 +548,11 @@ String _OS::get_environment(const String &p_var) const {
 | 
			
		|||
	return OS::get_singleton()->get_environment(p_var);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool _OS::set_environment(const String &p_var, const String &p_value) const {
 | 
			
		||||
 | 
			
		||||
	return OS::get_singleton()->set_environment(p_var, p_value);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
String _OS::get_name() const {
 | 
			
		||||
 | 
			
		||||
	return OS::get_singleton()->get_name();
 | 
			
		||||
| 
						 | 
				
			
			@ -1343,6 +1348,7 @@ void _OS::_bind_methods() {
 | 
			
		|||
	ClassDB::bind_method(D_METHOD("get_process_id"), &_OS::get_process_id);
 | 
			
		||||
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("get_environment", "environment"), &_OS::get_environment);
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("set_environment", "environment", "value"), &_OS::set_environment);
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("has_environment", "environment"), &_OS::has_environment);
 | 
			
		||||
 | 
			
		||||
	ClassDB::bind_method(D_METHOD("get_name"), &_OS::get_name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue