2013-04-04 19:04:48 +01:00
|
|
|
Module['preRun'] = function()
|
|
|
|
{
|
2013-08-07 15:20:24 +01:00
|
|
|
//FS.createPath('/', 'id1', true, true);
|
2013-04-04 19:04:48 +01: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 19:38:42 +01:00
|
|
|
Module['arguments'] = ['-nohome', '-manifest', document.location + '.fmf'];
|
2013-04-09 22:31:44 +01: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 19:38:42 +01:00
|
|
|
}
|