mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 04:02:52 -06:00 
			
		
		
		
	More tolerance for config files
This commit is contained in:
		
							parent
							
								
									28a89c70c9
								
							
						
					
					
						commit
						ea254588f7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -296,6 +296,8 @@ sub load { | |||
|      | ||||
|     open my $fh, '<', $file; | ||||
|     while (<$fh>) { | ||||
|         next if /^\s+/; | ||||
|         next if /^$/; | ||||
|         next if /^\s*#/; | ||||
|         /^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n"; | ||||
|         my $key = $1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci