INNER CODE UNIT · JavaScript

createBaseDir

xonotic/darkplaces · wasm/pre.js:61

		function createBaseDir() {
			//
			// Creates the Quake basedir and mounts it to IDBFS
			//
			FS.mkdir('/game');
			//mounts IDBFS to where the game would save
			FS.mount(IDBFS, {}, '/home/web_user/');
		}

		function downloadGameFiles() {
			//
			// Download files specified in the Module.files object
			//
			createBaseDir();

			let downloads = [];
			for (const [localPath, remotePath] of Object.entries(Module.files)) {
				console.log("Downloading " + remotePath + " to " + localPath);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…