-Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
This commit is contained in:
parent
89588d4334
commit
25678b1876
162 changed files with 1296 additions and 831 deletions
|
|
@ -32,8 +32,8 @@
|
|||
#ifdef TOOLS_ENABLED
|
||||
|
||||
#include "class_db.h"
|
||||
#include "core/global_config.h"
|
||||
#include "core/global_constants.h"
|
||||
#include "core/project_settings.h"
|
||||
#include "os/file_access.h"
|
||||
|
||||
// helper stuff
|
||||
|
|
@ -150,7 +150,7 @@ List<ClassAPI> generate_c_api_classes() {
|
|||
if (name.begins_with("_")) {
|
||||
name.remove(0);
|
||||
}
|
||||
class_api.is_singleton = GlobalConfig::get_singleton()->has_singleton(name);
|
||||
class_api.is_singleton = ProjectSettings::get_singleton()->has_singleton(name);
|
||||
}
|
||||
class_api.is_instanciable = !class_api.is_singleton && ClassDB::can_instance(class_name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue