Browse Source

Fixed wasm directory finding

Brian Fiete 10 months ago
parent
commit
6a14bb55b5
1 changed files with 3 additions and 1 deletions
  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);