|
@@ -506,7 +506,7 @@ bool EditorFileSystem::_update_scan_actions() {
|
|
case ItemAction::ACTION_DIR_ADD: {
|
|
case ItemAction::ACTION_DIR_ADD: {
|
|
int idx = 0;
|
|
int idx = 0;
|
|
for (int i = 0; i < ia.dir->subdirs.size(); i++) {
|
|
for (int i = 0; i < ia.dir->subdirs.size(); i++) {
|
|
- if (ia.new_dir->name < ia.dir->subdirs[i]->name) {
|
|
|
|
|
|
+ if (ia.new_dir->name.naturalnocasecmp_to(ia.dir->subdirs[i]->name) < 0) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
idx++;
|
|
idx++;
|
|
@@ -528,7 +528,7 @@ bool EditorFileSystem::_update_scan_actions() {
|
|
case ItemAction::ACTION_FILE_ADD: {
|
|
case ItemAction::ACTION_FILE_ADD: {
|
|
int idx = 0;
|
|
int idx = 0;
|
|
for (int i = 0; i < ia.dir->files.size(); i++) {
|
|
for (int i = 0; i < ia.dir->files.size(); i++) {
|
|
- if (ia.new_file->file < ia.dir->files[i]->file) {
|
|
|
|
|
|
+ if (ia.new_file->file.naturalnocasecmp_to(ia.dir->files[i]->file) < 0) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
idx++;
|
|
idx++;
|
|
@@ -713,7 +713,7 @@ void EditorFileSystem::_scan_new_dir(EditorFileSystemDirectory *p_dir, DirAccess
|
|
|
|
|
|
int idx2 = 0;
|
|
int idx2 = 0;
|
|
for (int i = 0; i < p_dir->subdirs.size(); i++) {
|
|
for (int i = 0; i < p_dir->subdirs.size(); i++) {
|
|
- if (efd->name < p_dir->subdirs[i]->name) {
|
|
|
|
|
|
+ if (efd->name.naturalnocasecmp_to(p_dir->subdirs[i]->name) < 0) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
idx2++;
|
|
idx2++;
|
|
@@ -1245,7 +1245,7 @@ bool EditorFileSystem::_find_file(const String &p_file, EditorFileSystemDirector
|
|
|
|
|
|
int idx2 = 0;
|
|
int idx2 = 0;
|
|
for (int j = 0; j < fs->get_subdir_count(); j++) {
|
|
for (int j = 0; j < fs->get_subdir_count(); j++) {
|
|
- if (efsd->name < fs->get_subdir(j)->get_name()) {
|
|
|
|
|
|
+ if (efsd->name.naturalnocasecmp_to(fs->get_subdir(j)->get_name()) < 0) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
idx2++;
|
|
idx2++;
|
|
@@ -1481,7 +1481,7 @@ void EditorFileSystem::update_file(const String &p_file) {
|
|
String file_name = p_file.get_file();
|
|
String file_name = p_file.get_file();
|
|
|
|
|
|
for (int i = 0; i < fs->files.size(); i++) {
|
|
for (int i = 0; i < fs->files.size(); i++) {
|
|
- if (file_name < fs->files[i]->file) {
|
|
|
|
|
|
+ if (p_file.naturalnocasecmp_to(fs->files[i]->file) < 0) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
idx++;
|
|
idx++;
|