You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Windows] Fix windows is_path_invalid, and apply it to directory creation.
This commit is contained in:
@@ -60,12 +60,7 @@ void FileAccessWindows::check_errors() const {
|
||||
|
||||
bool FileAccessWindows::is_path_invalid(const String &p_path) {
|
||||
// Check for invalid operating system file.
|
||||
String fname = p_path;
|
||||
int dot = fname.find(".");
|
||||
if (dot != -1) {
|
||||
fname = fname.substr(0, dot);
|
||||
}
|
||||
fname = fname.to_lower();
|
||||
String fname = p_path.get_file().get_basename().to_lower();
|
||||
return invalid_files.has(fname);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user