mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Replace String::find_last with rfind where possible (backward compatible with old API)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user