1
0
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:
Leon Krause
2018-03-18 16:40:20 +01:00
parent f4373311e7
commit 4e0643a51c
5 changed files with 19 additions and 170 deletions

View File

@@ -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 */

View File

@@ -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'])

View File

@@ -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');
});
);