Procházet zdrojové kódy

Fixed wasm directory finding

Brian Fiete před 9 měsíci
rodič
revize
6a14bb55b5
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      IDE/src/BuildContext.bf

+ 3 - 1
IDE/src/BuildContext.bf

@@ -704,7 +704,9 @@ namespace IDE
 #else
 						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);
 
 							var runCmd = gApp.QueueRun(scope $"{wasmPath}/fetch_wasm.bat", "", wasmPath, .UTF8);