From 7c47baa66b309a061886f0bf1aef0ffcc9a533c4 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 16 Aug 2023 14:06:31 +0300 Subject: [PATCH] Making PHPStan happy --- .gitignore | 1 + unity.inc.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/unity.inc.php b/unity.inc.php index cccb919..00ff532 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -252,9 +252,9 @@ function build_mono($src_spec, $out_file, $ref_dlls = array(), $mcs_opts = "") foreach($sources as $src) { if(is_win()) - $sources_str .= '"'.normalize_path($src, !is_win()).'" '; + $sources_str .= '"'.normalize_path($src).'" '; else - $sources_str .= '\''.normalize_path($src, !is_win()).'\' '; + $sources_str .= '\''.normalize_path($src).'\' '; } $deps = $sources; @@ -300,7 +300,7 @@ function run_mono($exe_file) if(is_win()) { $unity_dir = "$app_dir/Editor/Data"; - $mono_bin = '"' . normalize_path("$unity_dir/Mono/bin/mono", !is_win()) . '"'; + $mono_bin = '"' . normalize_path("$unity_dir/Mono/bin/mono") . '"'; } else {