You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Added API version and hashing to ObjectTypeDB
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user