mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
More tolerance for config files
This commit is contained in:
@@ -296,6 +296,8 @@ sub load {
|
|||||||
|
|
||||||
open my $fh, '<', $file;
|
open my $fh, '<', $file;
|
||||||
while (<$fh>) {
|
while (<$fh>) {
|
||||||
|
next if /^\s+/;
|
||||||
|
next if /^$/;
|
||||||
next if /^\s*#/;
|
next if /^\s*#/;
|
||||||
/^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
/^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
||||||
my $key = $1;
|
my $key = $1;
|
||||||
|
|||||||
Reference in New Issue
Block a user