1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add "editor" and "standalone" feature tags

These feature tags can be used to check whether the project was
started from an editor binary or from an export template binary.
This commit is contained in:
Hugo Locurcio
2018-07-25 23:20:54 +02:00
parent c0c795474e
commit 0254a40817

View File

@@ -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;