Update Godot Javascript FS library to manually depend on ERRNO_CODES.

Fixes compatibility with Emscripten 2.0.26+.

(cherry picked from commit 71fb2429a0)
This commit is contained in:
Fabio Alessandrelli 2021-08-18 10:30:50 +01:00 committed by Rémi Verschelde
parent 6eb52b0768
commit b7b9b902e5
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,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;',