aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-29 12:00:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-29 12:00:32 -0700
commitb872b8a299b43df0bcd8150aa4c4836fe6213e6c (patch)
tree79b33b0d319dd3cdd68bb1ca6c8ba8eebe04a9da /tools
parenta3add373fee8679fc573967f8a77a20bf890d191 (diff)
allow null second param in createPreloadedFile|createDataFile so that file packager does not need PATH, and works through closure
Diffstat (limited to 'tools')
-rw-r--r--tools/file_packager.py2
1 files changed, 1 insertions, 1 deletions
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) {