Forráskód Böngészése

Fixed wasm directory finding

Brian Fiete 10 hónapja
szülő
commit
6a14bb55b5
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      IDE/src/BuildContext.bf

+ 3 - 1
IDE/src/BuildContext.bf

@@ -704,7 +704,9 @@ namespace IDE
 #else
 #else
 						if (gApp.mSettings.mEmscriptenPendingInstall)
 						if (gApp.mSettings.mEmscriptenPendingInstall)
 						{
 						{
-							String wasmPath = Path.GetAbsolutePath("../../wasm", gApp.mInstallDir, .. scope .());
+							String wasmPath = Path.GetAbsolutePath("../wasm", gApp.mInstallDir, .. scope .());
+							if (!Directory.Exists(wasmPath))
+								Path.GetAbsolutePath("../../wasm", gApp.mInstallDir, wasmPath..Clear());
 							IDEUtils.FixFilePath(wasmPath);
 							IDEUtils.FixFilePath(wasmPath);
 
 
 							var runCmd = gApp.QueueRun(scope $"{wasmPath}/fetch_wasm.bat", "", wasmPath, .UTF8);
 							var runCmd = gApp.QueueRun(scope $"{wasmPath}/fetch_wasm.bat", "", wasmPath, .UTF8);