瀏覽代碼

test fix for mac audio processing

Jonathan Higgins 7 月之前
父節點
當前提交
0497e30093
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 4 1
      scenes/main/control.gd
  2. 1 1
      scenes/main/control.tscn

+ 4 - 1
scenes/main/control.gd

@@ -1236,7 +1236,10 @@ func run_command(command: String) -> Array:
 	if is_windows:
 		exit_code = OS.execute("cmd.exe", ["/C", command], output, true, false)
 	else:
-		exit_code = OS.execute("sh", [command], output, true, false)
+		var command_split = command.split(" ", true, 1)
+		var args = command_split[1].split(" ")
+		print(command_split)
+		exit_code = OS.execute(command_split[0], args, output, true, false)
 
 	var output_str := ""
 	for item in output:

+ 1 - 1
scenes/main/control.tscn

@@ -355,7 +355,7 @@ script = ExtResource("6_fyarh")
 offset_left = 4.0
 offset_top = 4.0
 offset_right = 596.0
-offset_bottom = 49.0
+offset_bottom = 45.0
 
 [node name="SearchBar" type="LineEdit" parent="SearchMenu/VBoxContainer"]
 layout_mode = 2