diff options
| author | Andreas Haas | 2017-10-02 23:51:26 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-02 23:51:26 +0200 |
| commit | 132ba0ed9799db9ed1449fa2f2fc597d4b91612d (patch) | |
| tree | b0c62cdc864e64636fa6717438025fbd9a35fb04 /core/io/file_access_memory.cpp | |
| parent | de9cc6ed96c79c70ca9cf22830b3e42cca4f244b (diff) | |
| parent | 1a2311e3505765e37b736fe6bb46bb229e00701f (diff) | |
| download | godot-132ba0ed9799db9ed1449fa2f2fc597d4b91612d.tar.gz godot-132ba0ed9799db9ed1449fa2f2fc597d4b91612d.tar.zst godot-132ba0ed9799db9ed1449fa2f2fc597d4b91612d.zip | |
Diffstat (limited to 'core/io/file_access_memory.cpp')
| -rw-r--r-- | core/io/file_access_memory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index b94839438..0a5815fca 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -170,6 +170,10 @@ Error FileAccessMemory::get_error() const { return pos >= length ? ERR_FILE_EOF : OK; } +void FileAccessMemory::flush() { + ERR_FAIL_COND(!data); +} + void FileAccessMemory::store_8(uint8_t p_byte) { ERR_FAIL_COND(!data); |
