Make Unity app dir guess error more informative

This commit is contained in:
Pavel Shevaev 2023-04-14 11:34:45 +03:00
parent c632553277
commit f6c8b2d723
1 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,6 @@ function guess_unity_app_dir()
if(is_file($proj_version_file)) if(is_file($proj_version_file))
{ {
list($_, $unity_version) = array_map('trim', explode(":", file($proj_version_file)[0])); 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; return $path;