瀏覽代碼

Use WasmLaunch for html files

Brian Fiete 9 月之前
父節點
當前提交
5627956682
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      IDE/src/IDEApp.bf

+ 6 - 0
IDE/src/IDEApp.bf

@@ -12305,6 +12305,12 @@ namespace IDE
 			if (workingDir.IsEmpty)
 				Path.GetDirectoryPath(launchPath, workingDir).IgnoreError();
 
+			if (launchPath.EndsWith(".html"))
+			{
+				arguments.Set(launchPath);
+				launchPath.Set(scope $"{gApp.mInstallDir}/WasmLaunch.exe");
+			}
+
 			if (!Directory.Exists(workingDir))
 			{
 				OutputErrorLine(scope String()..AppendF("Unable to locate working directory '{0}'", workingDir));