Add THREADS_ENABLED macro in order to compile Godot to run on the main thread
This commit is contained in:
@ -504,6 +504,12 @@ bool OS::has_feature(const String &p_feature) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef THREADS_ENABLED
|
||||
if (p_feature == "threads") {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_check_internal_feature_support(p_feature)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user