mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Ported Config::setenv() to XS
This commit is contained in:
		
							parent
							
								
									f361d8ad43
								
							
						
					
					
						commit
						249088b4f8
					
				
					 4 changed files with 49 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -192,14 +192,6 @@ sub save {
 | 
			
		|||
    __PACKAGE__->write_ini($file, $self->as_ini);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub setenv {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    
 | 
			
		||||
    foreach my $opt_key (@{$self->get_keys}) {
 | 
			
		||||
        $ENV{"SLIC3R_" . uc $opt_key} = $self->serialize($opt_key);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# this method is idempotent by design and only applies to ::DynamicConfig or ::Full
 | 
			
		||||
# objects because it performs cross checks
 | 
			
		||||
sub validate {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue