You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use (r)find_char instead of (r)find for single characters
This commit is contained in:
@@ -1598,7 +1598,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
} else if (arg.ends_with("project.godot")) {
|
||||
String path;
|
||||
String file = arg;
|
||||
int sep = MAX(file.rfind("/"), file.rfind("\\"));
|
||||
int sep = MAX(file.rfind_char('/'), file.rfind_char('\\'));
|
||||
if (sep == -1) {
|
||||
path = ".";
|
||||
} else {
|
||||
@@ -4145,7 +4145,7 @@ int Main::start() {
|
||||
local_game_path = "res://" + local_game_path;
|
||||
|
||||
} else {
|
||||
int sep = local_game_path.rfind("/");
|
||||
int sep = local_game_path.rfind_char('/');
|
||||
|
||||
if (sep == -1) {
|
||||
Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
|
||||
Reference in New Issue
Block a user