Replace String::find_last with rfind where possible (backward compatible with old API)

This commit is contained in:
Bartłomiej T. Listwon
2022-01-08 22:40:44 +01:00
parent 37b9aba458
commit 22750b1c03
18 changed files with 35 additions and 43 deletions

View File

@@ -99,7 +99,7 @@ String ProjectSettings::localize_path(const String &p_path) const {
} else {
memdelete(dir);
int sep = path.find_last("/");
int sep = path.rfind("/");
if (sep == -1) {
return "res://" + path;
};