From 6a14bb55b517c089287cb8cdf9262bd9c3bd7725 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 21 Oct 2024 09:11:28 -0400 Subject: [PATCH] Fixed wasm directory finding --- IDE/src/BuildContext.bf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IDE/src/BuildContext.bf b/IDE/src/BuildContext.bf index c02a14db..6390b8aa 100644 --- a/IDE/src/BuildContext.bf +++ b/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);