mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-16 19:41:47 +08:00
More fixes for non-ASCII paths on Windows
This commit is contained in:
parent
66e48e9d22
commit
ade661ebf1
@ -89,10 +89,17 @@ sub load {
|
||||
|
||||
# legacy syntax of load()
|
||||
my $config = $class->new;
|
||||
$config->_load($file);
|
||||
$config->_load(Slic3r::encode_path($file));
|
||||
return $config;
|
||||
}
|
||||
|
||||
sub save {
|
||||
my $self = shift;
|
||||
my ($file) = @_;
|
||||
|
||||
return $self->_save(Slic3r::encode_path($file));
|
||||
}
|
||||
|
||||
sub load_ini_hash {
|
||||
my $class = shift;
|
||||
my ($ini_hash) = @_;
|
||||
|
@ -39,7 +39,7 @@
|
||||
%name{setenv} void setenv_();
|
||||
double min_object_distance();
|
||||
%name{_load} void load(std::string file);
|
||||
void save(std::string file);
|
||||
%name{_save} void save(std::string file);
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::Static} class StaticPrintConfig {
|
||||
@ -87,7 +87,7 @@
|
||||
%name{setenv} void setenv_();
|
||||
double min_object_distance();
|
||||
%name{_load} void load(std::string file);
|
||||
void save(std::string file);
|
||||
%name{_save} void save(std::string file);
|
||||
};
|
||||
|
||||
%package{Slic3r::Config};
|
||||
|
@ -254,7 +254,7 @@ INPUT
|
||||
T_STD_STRING
|
||||
{
|
||||
size_t len;
|
||||
const char * c = SvPVutf8($arg, len);
|
||||
const char * c = SvPV($arg, len);
|
||||
$var = std::string(c, len);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user