mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Added API version and hashing to ObjectTypeDB
This commit is contained in:
parent
a4156f1f0a
commit
a75f5f039e
5 changed files with 212 additions and 2 deletions
|
|
@ -994,8 +994,11 @@ Error Main::setup2() {
|
|||
}
|
||||
}
|
||||
#ifdef TOOLS_ENABLED
|
||||
ObjectTypeDB::set_current_api(ObjectTypeDB::API_EDITOR);
|
||||
EditorNode::register_editor_types();
|
||||
ObjectTypeDB::register_type<PCKPacker>(); // todo: move somewhere else
|
||||
ObjectTypeDB::set_current_api(ObjectTypeDB::API_CORE);
|
||||
|
||||
#endif
|
||||
|
||||
MAIN_PRINT("Main: Load Scripts, Modules, Drivers");
|
||||
|
|
@ -1022,6 +1025,8 @@ Error Main::setup2() {
|
|||
_start_success=true;
|
||||
locale=String();
|
||||
|
||||
ObjectTypeDB::set_current_api(ObjectTypeDB::API_NONE); //no more api is registered at this point
|
||||
|
||||
MAIN_PRINT("Main: Done");
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue