summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-28 10:49:27 +0200
committerGitHub <noreply@github.com>2018-07-28 10:49:27 +0200
commit4e4702e3868af342b0e2964c7753fa4a3aa83af8 (patch)
treeb48da5d95dd7f905feea2ee655e2c4b96b669e53 /core/os
parent4488bb995683c381db78b7ec76d563be92762d6c (diff)
parent0254a408173f36ba194dc3b69543d85d66e832fa (diff)
Merge pull request #20464 from Calinou/add-editor-standalone-feature-tags
Add "editor" and "standalone" feature tags
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index 8dcf0990fc..97dae05919 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -577,6 +577,13 @@ bool OS::has_feature(const String &p_feature) {
if (p_feature == "release")
return true;
#endif
+#ifdef TOOLS_ENABLED
+ if (p_feature == "editor")
+ return true;
+#else
+ if (p_feature == "standalone")
+ return true;
+#endif
if (sizeof(void *) == 8 && p_feature == "64") {
return true;