You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix Closure compiler build, python style.
Move copyToFS into utils.js library included with '--pre-js'.
This commit is contained in:
@@ -312,14 +312,14 @@ WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
|
||||
return;
|
||||
}
|
||||
var len = buffer.length*buffer.BYTES_PER_ELEMENT;
|
||||
var out = Module._malloc(len);
|
||||
Module.HEAPU8.set(buffer, out);
|
||||
var out = _malloc(len);
|
||||
HEAPU8.set(buffer, out);
|
||||
ccall("_emrtc_on_ch_message",
|
||||
"void",
|
||||
["number", "number", "number", "number"],
|
||||
[c_ptr, out, len, is_string]
|
||||
);
|
||||
Module._free(out);
|
||||
_free(out);
|
||||
}
|
||||
|
||||
}, this, js_id);
|
||||
|
||||
Reference in New Issue
Block a user