diff options
| author | Ruslan Mustakov | 2017-09-22 12:56:02 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2017-09-25 16:19:21 +0700 |
| commit | 1a2311e3505765e37b736fe6bb46bb229e00701f (patch) | |
| tree | fd592573dbe7d95b89649eaa677bef54336c648e /core/io/file_access_encrypted.cpp | |
| parent | 14b4ad931f54c73aff9021a1314943278295e602 (diff) | |
| download | godot-1a2311e3505765e37b736fe6bb46bb229e00701f.tar.gz godot-1a2311e3505765e37b736fe6bb46bb229e00701f.tar.zst godot-1a2311e3505765e37b736fe6bb46bb229e00701f.zip | |
Diffstat (limited to 'core/io/file_access_encrypted.cpp')
| -rw-r--r-- | core/io/file_access_encrypted.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/io/file_access_encrypted.cpp b/core/io/file_access_encrypted.cpp index 461c5bafe..c93e12f7d 100644 --- a/core/io/file_access_encrypted.cpp +++ b/core/io/file_access_encrypted.cpp @@ -268,6 +268,12 @@ void FileAccessEncrypted::store_buffer(const uint8_t *p_src, int p_length) { } } +void FileAccessEncrypted::flush() { + ERR_FAIL_COND(!writing); + + // encrypted files keep data in memory till close() +} + void FileAccessEncrypted::store_8(uint8_t p_dest) { ERR_FAIL_COND(!writing); |
