mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 11:01:17 +00:00
Make the setting unix-only.
For this, put the detection into the OS class and its subclass.
This commit is contained in:
parent
15f6d3cebf
commit
e1d02e4831
8 changed files with 24 additions and 13 deletions
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue