Make Unity app dir guess error more informative
This commit is contained in:
parent
c632553277
commit
f6c8b2d723
|
@ -143,8 +143,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue