Remove preloading progress, load wasm
This commit is contained in:
		
							parent
							
								
									30c4b1d594
								
							
						
					
					
						commit
						00ccbf5db9
					
				
					 2 changed files with 22 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -13,6 +13,9 @@ EM_JS(void, load_file_async_js, (const char* fullPathC), {
 | 
			
		|||
		// Check if already loaded
 | 
			
		||||
		if (window.fileAsyncCache.hasOwnProperty(fullPath)) return wakeUp();
 | 
			
		||||
 | 
			
		||||
		// Show spinner
 | 
			
		||||
		if (window.setBusy) window.setBusy();
 | 
			
		||||
 | 
			
		||||
		// Get mapping key
 | 
			
		||||
		const mappingKey = fullPath.toLowerCase().replace(new RegExp("\\\\.[^/.]+$"), "");
 | 
			
		||||
		const mappingValue = mapping[mappingKey];
 | 
			
		||||
| 
						 | 
				
			
			@ -39,6 +42,7 @@ EM_JS(void, load_file_async_js, (const char* fullPathC), {
 | 
			
		|||
		getLazyAsset(iurl, filename, () => {
 | 
			
		||||
			FS.createPreloadedFile(path, filename, iurl, true, true, function() {
 | 
			
		||||
				window.fileAsyncCache[fullPath] = 1;
 | 
			
		||||
				if (window.setNotBusy) window.setNotBusy();
 | 
			
		||||
				if (window.fileLoadedAsync) window.fileLoadedAsync(fullPath);
 | 
			
		||||
				wakeUp();
 | 
			
		||||
			}, console.error);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue