mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
String: Add contains().
This commit is contained in:
parent
bf12719cca
commit
adbe948bda
57 changed files with 142 additions and 119 deletions
|
@ -159,7 +159,7 @@ Error DirAccess::make_dir_recursive(String p_dir) {
|
|||
base = full_dir.substr(0, pos + 1);
|
||||
} else if (full_dir.begins_with("/")) {
|
||||
base = "/";
|
||||
} else if (full_dir.find(":/") != -1) {
|
||||
} else if (full_dir.contains(":/")) {
|
||||
base = full_dir.substr(0, full_dir.find(":/") + 2);
|
||||
} else {
|
||||
ERR_FAIL_V(ERR_INVALID_PARAMETER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue