Merge pull request #55594 from Fro-Z/fix-html-file-drop

Fix files_dropped in HTML5 export mono builds.
This commit is contained in:
Fabio Alessandrelli 2021-12-09 10:41:43 +01:00 committed by GitHub
commit 41e5f9227c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ const GodotInputDragDrop = {
const DROP = `/tmp/drop-${parseInt(Math.random() * (1 << 30), 10)}/`;
const drops = [];
const files = [];
FS.mkdir(DROP);
FS.mkdir(DROP.slice(0, -1)); // Without trailing slash
GodotInputDragDrop.pending_files.forEach((elem) => {
const path = elem['path'];
GodotFS.copy_to_fs(DROP + path, elem['data']);