diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-01-23 19:49:50 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-01-31 09:20:46 +0200 |
commit | b3ddf12fb1774d63ac47a8d9890bf017b67d879e (patch) | |
tree | 42a24d4209427c167c2a8f7f89867a5c2497446e /core/os | |
parent | 20a52aa39db9a6e35738ee486848bd3dd28510cb (diff) |
Mono: Allow loading `mscorlib` from resources.
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/file_access.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 368b4ad09d..033b4b12b9 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -479,6 +479,9 @@ void FileAccess::store_double(double p_dest) { uint64_t FileAccess::get_modified_time(const String &p_file) { + if (PackedData::get_singleton() && !PackedData::get_singleton()->is_disabled() && PackedData::get_singleton()->has_path(p_file)) + return 0; + FileAccess *fa = create_for_path(p_file); ERR_FAIL_COND_V(!fa, 0); |