aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/file_access_unix.cpp
diff options
context:
space:
mode:
authorRuslan Mustakov2017-09-22 12:56:02 +0700
committerRuslan Mustakov2017-09-25 16:19:21 +0700
commit1a2311e3505765e37b736fe6bb46bb229e00701f (patch)
treefd592573dbe7d95b89649eaa677bef54336c648e /drivers/unix/file_access_unix.cpp
parent14b4ad931f54c73aff9021a1314943278295e602 (diff)
downloadgodot-1a2311e3505765e37b736fe6bb46bb229e00701f.tar.gz
godot-1a2311e3505765e37b736fe6bb46bb229e00701f.tar.zst
godot-1a2311e3505765e37b736fe6bb46bb229e00701f.zip
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
-rw-r--r--drivers/unix/file_access_unix.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp
index 649f874cf..206f57d4a 100644
--- a/drivers/unix/file_access_unix.cpp
+++ b/drivers/unix/file_access_unix.cpp
@@ -223,6 +223,12 @@ Error FileAccessUnix::get_error() const {
return last_error;
}
+void FileAccessUnix::flush() {
+
+ ERR_FAIL_COND(!f);
+ fflush(f);
+}
+
void FileAccessUnix::store_8(uint8_t p_dest) {
ERR_FAIL_COND(!f);