diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-08-15 02:30:43 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-08-15 02:30:43 -0700 |
commit | 44dc24ec38b9853a73e53cb80263ff4748ecc7e7 (patch) | |
tree | deafc0d68968e2c2f4e460edf811f91000291dc0 /platform/ios/export/export_plugin.h | |
parent | b3117b63697c6934f4afc66c5e842ab26aa0a235 (diff) | |
download | redot-engine-44dc24ec38b9853a73e53cb80263ff4748ecc7e7.tar.gz |
Disable threads used to check on plugins to load
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources
Diffstat (limited to 'platform/ios/export/export_plugin.h')
-rw-r--r-- | platform/ios/export/export_plugin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/ios/export/export_plugin.h b/platform/ios/export/export_plugin.h index 8079eda8f6..abda8e218a 100644 --- a/platform/ios/export/export_plugin.h +++ b/platform/ios/export/export_plugin.h @@ -57,8 +57,10 @@ class EditorExportPlatformIOS : public EditorExportPlatform { // Plugins SafeFlag plugins_changed; +#ifndef ANDROID_ENABLED Thread check_for_changes_thread; SafeFlag quit_request; +#endif Mutex plugins_lock; Vector<PluginConfigIOS> plugins; @@ -139,6 +141,7 @@ class EditorExportPlatformIOS : public EditorExportPlatform { return true; } +#ifndef ANDROID_ENABLED static void _check_for_changes_poll_thread(void *ud) { EditorExportPlatformIOS *ea = static_cast<EditorExportPlatformIOS *>(ud); @@ -172,6 +175,7 @@ class EditorExportPlatformIOS : public EditorExportPlatform { } } } +#endif protected: virtual void get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const override; |