summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-11-30 02:35:59 +0100
committerest31 <MTest31@outlook.com>2015-11-30 02:35:59 +0100
commite1d02e4831fdec372771956aa2ac70954ab3fe7b (patch)
treea95d60ae6481cd96a53af896710e43429187353a /drivers/unix/os_unix.cpp
parent15f6d3cebf9e8c9288132454816f1152e16dde36 (diff)
downloadredot-engine-e1d02e4831fdec372771956aa2ac70954ab3fe7b.tar.gz
Make the setting unix-only.
For this, put the detection into the OS class and its subclass.
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index fd8c26f6d9..94a7b03f45 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -477,6 +477,14 @@ String OS_Unix::get_data_dir() const {
}
+String OS_Unix::get_installed_templates_path() const {
+ String p=get_global_settings_path();
+ if (p!="")
+ return p+"/templates/";
+ else
+ return "";
+}
+
String OS_Unix::get_executable_path() const {
#ifdef __linux__