From f6c8b2d723eb9c3da213a9ba1cf2d6bcb7dabfce Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 14 Apr 2023 11:34:45 +0300 Subject: [PATCH] Make Unity app dir guess error more informative --- unity.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unity.inc.php b/unity.inc.php index ada0b04..f2c3487 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -143,8 +143,7 @@ function guess_unity_app_dir() if(is_file($proj_version_file)) { list($_, $unity_version) = array_map('trim', explode(":", file($proj_version_file)[0])); - if(is_dir("{$path}Hub/Editor/$unity_version/")) - $path .= "Hub/Editor/$unity_version/"; + $path .= "Hub/Editor/$unity_version/"; } return $path; }