mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fixed running the export templates with newer emscripten versions.
This commit is contained in:
		
							parent
							
								
									79298face0
								
							
						
					
					
						commit
						6f1d6cfc78
					
				
					 3 changed files with 9 additions and 10 deletions
				
			
		|  | @ -94,6 +94,7 @@ | |||
| 			return new Promise(function(resolve, reject) { | ||||
| 				rtenvProps.onRuntimeInitialized = resolve; | ||||
| 				rtenvProps.onAbort = reject; | ||||
| 				rtenvProps.thisProgram = executableName; | ||||
| 				rtenvProps.engine.rtenv = Engine.RuntimeEnvironment(rtenvProps, LIBS); | ||||
| 			}); | ||||
| 		} | ||||
|  | @ -130,13 +131,11 @@ | |||
| 			); | ||||
| 		}; | ||||
| 
 | ||||
| 		this.startGame = function(mainPack) { | ||||
| 		this.startGame = function(execName, mainPack) { | ||||
| 
 | ||||
| 			executableName = execName; | ||||
| 			var mainArgs = [ '--main-pack', mainPack ]; | ||||
| 
 | ||||
| 			executableName = getBaseName(mainPack); | ||||
| 			var mainArgs = []; | ||||
| 			if (!getPathLeaf(mainPack).endsWith('.pck')) { | ||||
| 				mainArgs = ['--main-pack', getPathLeaf(mainPack)]; | ||||
| 			} | ||||
| 			return Promise.all([ | ||||
| 				// Load from directory,
 | ||||
| 				this.init(getBasePath(mainPack)), | ||||
|  | @ -187,8 +186,6 @@ | |||
| 			this.rtenv.locale = this.rtenv.locale.split('.')[0]; | ||||
| 			this.rtenv.resizeCanvasOnStart = resizeCanvasOnStart; | ||||
| 
 | ||||
| 			this.rtenv.thisProgram = executableName || getBaseName(basePath); | ||||
| 
 | ||||
| 			preloadedFiles.forEach(function(file) { | ||||
| 				var dir = LIBS.PATH.dirname(file.path); | ||||
| 				try { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Relintai
						Relintai