Fix make_mapping
This commit is contained in:
		
							parent
							
								
									4ce35c968b
								
							
						
					
					
						commit
						9b46b5ce91
					
				
					 2 changed files with 18 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -135,18 +135,18 @@ var createDummies = function() {
 | 
			
		|||
    FS.mkdir('/game');
 | 
			
		||||
 | 
			
		||||
    // Create dummy objects
 | 
			
		||||
    Object.values(mapping).forEach((file) => {
 | 
			
		||||
    for (var i = 0; i < mappingArray.length; i++) {
 | 
			
		||||
        // Get filename
 | 
			
		||||
        const file = mappingArray[i][1];
 | 
			
		||||
        const filename = '/game/' + file.split("?")[0];
 | 
			
		||||
 | 
			
		||||
        // Check if folder
 | 
			
		||||
        if (file.endsWith('h=')) {
 | 
			
		||||
            return FS.mkdir(filename);
 | 
			
		||||
            FS.mkdir(filename);
 | 
			
		||||
        } else {
 | 
			
		||||
            FS.writeFile(filename, '1');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Create dummy file
 | 
			
		||||
        FS.writeFile(filename, '1');
 | 
			
		||||
    });
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
window.setBusy = function() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue