mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 08:53:35 +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:
parent
6b34f10ab1
commit
63b1a096eb
12 changed files with 211 additions and 35 deletions
|
@ -512,11 +512,6 @@ void OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver, i
|
|||
#undef SET_EM_CALLBACK
|
||||
#undef EM_CHECK
|
||||
|
||||
#ifdef JAVASCRIPT_EVAL_ENABLED
|
||||
javascript_eval = memnew(JavaScript);
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton("JavaScript", javascript_eval));
|
||||
#endif
|
||||
|
||||
visual_server->init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue