Browse Source

Update Godot Javascript FS library to manually depend on ERRNO_CODES.

Fixes compatibility with Emscripten 2.0.26+.

(cherry picked from commit 71fb2429a0229d03ada771a5d292e1c6ea82d62a)
Fabio Alessandrelli 4 years ago
parent
commit
2e8081cef2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/javascript/js/libs/library_godot_os.js

+ 1 - 1
platform/javascript/js/libs/library_godot_os.js

@@ -103,7 +103,7 @@ autoAddDeps(GodotConfig, '$GodotConfig');
 mergeInto(LibraryManager.library, GodotConfig);
 mergeInto(LibraryManager.library, GodotConfig);
 
 
 const GodotFS = {
 const GodotFS = {
-	$GodotFS__deps: ['$FS', '$IDBFS', '$GodotRuntime'],
+	$GodotFS__deps: ['$ERRNO_CODES', '$FS', '$IDBFS', '$GodotRuntime'],
 	$GodotFS__postset: [
 	$GodotFS__postset: [
 		'Module["initFS"] = GodotFS.init;',
 		'Module["initFS"] = GodotFS.init;',
 		'Module["copyToFS"] = GodotFS.copy_to_fs;',
 		'Module["copyToFS"] = GodotFS.copy_to_fs;',