You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
String: Add contains().
This commit is contained in:
@@ -70,7 +70,7 @@ void PackedData::add_path(const String &p_pkg_path, const String &p_path, uint64
|
||||
String p = p_path.replace_first("res://", "");
|
||||
PackedDir *cd = root;
|
||||
|
||||
if (p.find("/") != -1) { //in a subdir
|
||||
if (p.contains("/")) { //in a subdir
|
||||
|
||||
Vector<String> ds = p.get_base_dir().split("/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user