From b872b8a299b43df0bcd8150aa4c4836fe6213e6c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Aug 2013 12:00:32 -0700 Subject: allow null second param in createPreloadedFile|createDataFile so that file packager does not need PATH, and works through closure --- tools/file_packager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/file_packager.py') diff --git a/tools/file_packager.py b/tools/file_packager.py index 8a1f1ba5..8f0f8be8 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -360,7 +360,7 @@ if has_preloaded: }, finish: function(byteArray) { var that = this; - Module['FS_createPreloadedFile'](PATH.dirname(this.name), PATH.basename(this.name), byteArray, true, true, function() { + Module['FS_createPreloadedFile'](this.name, null, byteArray, true, true, function() { Module['removeRunDependency']('fp ' + that.name); }, function() { if (that.audio) { -- cgit v1.2.3-18-g5258