You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Fix HTML5 start-up, remove godotfs.js
This commit is contained in:
@@ -778,7 +778,7 @@ AudioServerJavascript::AudioServerJavascript() {
|
||||
|
||||
_as_audioctx = new (window.AudioContext || window.webkitAudioContext)();
|
||||
|
||||
audio_server_mix_function = Module.cwrap('audio_server_mix_function', 'void', ['number']);
|
||||
audio_server_mix_function = cwrap('audio_server_mix_function', null, ['number']);
|
||||
);
|
||||
/* clang-format on */
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@ def configure(env):
|
||||
env.Append(LINKFLAGS=['--compression', lzma_binpath + "," + lzma_decoder + "," + lzma_dec])
|
||||
|
||||
env.Append(LINKFLAGS=['-s', 'ASM_JS=1'])
|
||||
env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"'])
|
||||
env.Append(LINKFLAGS=['--separate-asm'])
|
||||
env.Append(LINKFLAGS=['-O2'])
|
||||
# env.Append(LINKFLAGS=['-g4'])
|
||||
|
||||
@@ -67,7 +67,7 @@ static void _godot_draw(void) {
|
||||
|
||||
extern "C" {
|
||||
|
||||
void main_after_fs_sync(int value) {
|
||||
void main_after_fs_sync() {
|
||||
|
||||
start_step = 1;
|
||||
printf("FS SYNCHED!\n");
|
||||
@@ -110,9 +110,7 @@ int main(int argc, char *argv[]) {
|
||||
FS.syncfs(true, function (err) {
|
||||
assert(!err);
|
||||
console.log("done syncinc!");
|
||||
_after_sync_cb = Module.cwrap('main_after_fs_sync', 'void',['number']);
|
||||
_after_sync_cb(0);
|
||||
|
||||
ccall('main_after_fs_sync');
|
||||
});
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user