2013-04-04 18:04:48 +00:00
|
|
|
Module['preRun'] = function()
|
|
|
|
{
|
2013-08-07 14:20:24 +00:00
|
|
|
//FS.createPath('/', 'id1', true, true);
|
2013-04-04 18:04:48 +00:00
|
|
|
//FS.createPath('/', 'qw', true, true);
|
|
|
|
//FS.createPath('/', 'fte', true, true);
|
|
|
|
|
|
|
|
//FS.createPath('/', 'tmp', true, true);
|
|
|
|
|
|
|
|
//FS.createPreloadedFile('/id1/', 'pak0.pak', '/pak0.pak', true, false);
|
|
|
|
//FS.createPreloadedFile('/id1/', 'pak1.pak', '/pak1.pak', true, false);
|
|
|
|
//FS.createPreloadedFile('/id1/', 'pak2.pak', '/pak2.pak', true, false);
|
|
|
|
//FS.createPreloadedFile('/id1/', 'pak3.pak', '/pak3.pak', true, false);
|
|
|
|
};
|
|
|
|
|
2013-05-14 18:38:42 +00:00
|
|
|
Module['arguments'] = ['-nohome', '-manifest', document.location + '.fmf'];
|
2013-04-09 21:31:44 +00:00
|
|
|
// use query string in URL as command line
|
|
|
|
if (!document.referrer) {
|
|
|
|
qstring = decodeURIComponent(window.location.search.substring(1)).split(" ");
|
|
|
|
Module['arguments'] = Module['arguments'].concat(qstring);
|
2013-05-14 18:38:42 +00:00
|
|
|
}
|