You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix invalid file path handling in Windows when there is dot in the file name
This basically re-adds dot-removal removed by the previous commit.
This commit is contained in:
committed by
Rémi Verschelde
parent
9272f7b53d
commit
c5e1b327c6
@@ -60,7 +60,12 @@ void FileAccessWindows::check_errors() const {
|
|||||||
|
|
||||||
bool FileAccessWindows::is_path_invalid(const String &p_path) {
|
bool FileAccessWindows::is_path_invalid(const String &p_path) {
|
||||||
// Check for invalid operating system file.
|
// Check for invalid operating system file.
|
||||||
String fname = p_path.get_file().get_basename().to_lower();
|
String fname = p_path.get_file().to_lower();
|
||||||
|
|
||||||
|
int dot = fname.find(".");
|
||||||
|
if (dot != -1) {
|
||||||
|
fname = fname.substr(0, dot);
|
||||||
|
}
|
||||||
return invalid_files.has(fname);
|
return invalid_files.has(fname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user