Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2018-02-12 10:57:32 +0300
committerYuSanka <yusanka@gmail.com>2018-02-12 10:57:32 +0300
commitbadeb2f64ce7039493ec1746cffc6655d53b8f5a (patch)
treeffb4ab4eddf7435aa5383766ec8305be126bea74 /xs/src/libslic3r/Utils.hpp
parentd18a200b0f9982987443d0b0bcbe55ce1e0c26b5 (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.hpp5
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);