[HTML5] GDNative support via SIDE_MODULE.

Working with emscripten >= 2.0.10
This commit is contained in:
Fabio Alessandrelli 2020-10-24 16:02:09 +02:00
parent 1167ab96e9
commit ca34b5e57a
8 changed files with 109 additions and 33 deletions

View file

@ -75,7 +75,7 @@ void main_loop_callback() {
}
/// When calling main, it is assumed FS is setup and synced.
int main(int argc, char *argv[]) {
extern EMSCRIPTEN_KEEPALIVE int godot_js_main(int argc, char *argv[]) {
os = new OS_JavaScript();
// We must override main when testing is enabled