mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #96398 from yahkr/fix-win-new-file
Fix Windows importer issue with new file detection
This commit is contained in:
commit
9ff888bcd4
@ -559,11 +559,10 @@ uint64_t FileAccessWindows::_get_modified_time(const String &p_file) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
String file = p_file;
|
String file = fix_path(p_file);
|
||||||
if (file.ends_with("/") && file != "/") {
|
if (file.ends_with("\\") && file != "\\") {
|
||||||
file = file.substr(0, file.length() - 1);
|
file = file.substr(0, file.length() - 1);
|
||||||
}
|
}
|
||||||
file = fix_path(file);
|
|
||||||
|
|
||||||
struct _stat st;
|
struct _stat st;
|
||||||
int rv = _wstat((LPCWSTR)(file.utf16().get_data()), &st);
|
int rv = _wstat((LPCWSTR)(file.utf16().get_data()), &st);
|
||||||
|
Loading…
Reference in New Issue
Block a user