Fix msbuild hint paths returning only the directory
This commit is contained in:
parent
4785e66eea
commit
32ee3ecce4
@ -61,10 +61,10 @@ String _find_build_engine_on_unix(const String &p_name) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(locations) / sizeof(const char *); i++) {
|
for (int i = 0; i < sizeof(locations) / sizeof(const char *); i++) {
|
||||||
String location = locations[i];
|
String hint_path = locations[i] + p_name;
|
||||||
|
|
||||||
if (FileAccess::exists(location + p_name)) {
|
if (FileAccess::exists(hint_path)) {
|
||||||
return location;
|
return hint_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user