From e1d02e4831fdec372771956aa2ac70954ab3fe7b Mon Sep 17 00:00:00 2001 From: est31 Date: Mon, 30 Nov 2015 02:35:59 +0100 Subject: Make the setting unix-only. For this, put the detection into the OS class and its subclass. --- drivers/unix/os_unix.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/unix/os_unix.cpp') 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__ -- cgit v1.2.3