INNER CODE UNIT · JavaScript

downloadGameFiles

xonotic/darkplaces · wasm/pre.js:70

		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);

				createParentDirectory(localPath);

				downloads.push(
					startDownload(localPath, remotePath)
				);
			}

			// Wait for downloads to finish, sync the filesystem, start the game

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…