summaryrefslogtreecommitdiffstats
path: root/core/project_settings.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-03-07 10:40:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-03-07 11:25:58 +0100
commitc74bf2e6b1ccad9c6cf72c0b142aa924de67eed0 (patch)
tree9d89dd90f7d3282500659f760036a2c1d0af598a /core/project_settings.cpp
parent8f5d9b63914b0049bd202b87c4b89ff3d48ad0ad (diff)
downloadredot-engine-c74bf2e6b1ccad9c6cf72c0b142aa924de67eed0.tar.gz
Define android/modules globally so it appears in Project Settings
Until now people had to add it manually to project.godot to load custom modules.
Diffstat (limited to 'core/project_settings.cpp')
-rw-r--r--core/project_settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp
index 6b4895d688..02c7c9e029 100644
--- a/core/project_settings.cpp
+++ b/core/project_settings.cpp
@@ -1185,6 +1185,9 @@ ProjectSettings::ProjectSettings() {
Compression::gzip_level = GLOBAL_DEF("compression/formats/gzip/compression_level", Z_DEFAULT_COMPRESSION);
custom_prop_info["compression/formats/gzip/compression_level"] = PropertyInfo(Variant::INT, "compression/formats/gzip/compression_level", PROPERTY_HINT_RANGE, "-1,9,1");
+ // Would ideally be defined in an Android-specific file, but then it doesn't appear in the docs
+ GLOBAL_DEF("android/modules", "");
+
using_datapack = false;
}