You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Facilitate exposing platform-exclusive interfaces to all platforms
This makes the interfaces available, without implementation, in other platforms and the editor, which facilitates documenting platform-exclusive classes. Platform-exclusive APIs must be set up in platform/<platform>/api/api.cpp. Provide noop method-implementations where necessary. Also setup and document the HTML5 platform's JavaScript singleton.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "message_queue.h"
|
||||
#include "modules/register_module_types.h"
|
||||
#include "os/os.h"
|
||||
#include "platform/register_platform_apis.h"
|
||||
#include "project_settings.h"
|
||||
#include "scene/register_scene_types.h"
|
||||
#include "script_debugger_local.h"
|
||||
@@ -1108,6 +1109,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
||||
|
||||
MAIN_PRINT("Main: Load Modules, Physics, Drivers, Scripts");
|
||||
|
||||
register_platform_apis();
|
||||
register_module_types();
|
||||
|
||||
initialize_physics();
|
||||
@@ -1825,6 +1827,7 @@ void Main::cleanup() {
|
||||
|
||||
unregister_driver_types();
|
||||
unregister_module_types();
|
||||
unregister_platform_apis();
|
||||
unregister_scene_types();
|
||||
unregister_server_types();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user