Only print message for get_modified_time()
failure when in verbose mode
This error message was often displayed for no good reason when PCK files were loaded in the editor. Since file modification dates are secondary metadata, it's not very important if it can't be retrieved successfully anyway.
This commit is contained in:
parent
1c5a8894aa
commit
5acb8a253e
2 changed files with 4 additions and 2 deletions
|
@ -307,7 +307,8 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
return flags.st_mtime;
|
return flags.st_mtime;
|
||||||
} else {
|
} else {
|
||||||
ERR_FAIL_V_MSG(0, "Failed to get modified time for: " + p_file + ".");
|
print_verbose("Failed to get modified time for: " + p_file + "");
|
||||||
|
return 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,8 @@ uint64_t FileAccessWindows::_get_modified_time(const String &p_file) {
|
||||||
if (rv == 0) {
|
if (rv == 0) {
|
||||||
return st.st_mtime;
|
return st.st_mtime;
|
||||||
} else {
|
} else {
|
||||||
ERR_FAIL_V_MSG(0, "Failed to get modified time for: " + file + ".");
|
print_verbose("Failed to get modified time for: " + p_file + "");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue