diff options
author | YuSanka <yusanka@gmail.com> | 2018-02-12 10:57:32 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2018-02-12 10:57:32 +0300 |
commit | badeb2f64ce7039493ec1746cffc6655d53b8f5a (patch) | |
tree | ffb4ab4eddf7435aa5383766ec8305be126bea74 /xs/src/libslic3r/Utils.hpp | |
parent | d18a200b0f9982987443d0b0bcbe55ce1e0c26b5 (diff) |
Save language preset.
* Added global variable g_local_dir to get "localization" directory.
* Chage/Set language works correctly now.
* Probably, fixed work on Linux
Diffstat (limited to 'xs/src/libslic3r/Utils.hpp')
-rw-r--r-- | xs/src/libslic3r/Utils.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Utils.hpp b/xs/src/libslic3r/Utils.hpp index d49995f95..27e7fad6b 100644 --- a/xs/src/libslic3r/Utils.hpp +++ b/xs/src/libslic3r/Utils.hpp @@ -19,8 +19,11 @@ std::string var(const std::string &file_name); void set_resources_dir(const std::string &path); // Return a full path to the resources directory. const std::string& resources_dir(); + +// Set a path with GUI localization files. +void set_local_dir(const std::string &path); // Return a full path to the localization directory. -std::string localization_dir(); +const std::string& localization_dir(); // Set a path with preset files. void set_data_dir(const std::string &path); |