summaryrefslogtreecommitdiffstats
path: root/drivers/unix/file_access_unix.cpp
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-10-02 23:51:26 +0200
committerGitHub <noreply@github.com>2017-10-02 23:51:26 +0200
commit132ba0ed9799db9ed1449fa2f2fc597d4b91612d (patch)
treeb0c62cdc864e64636fa6717438025fbd9a35fb04 /drivers/unix/file_access_unix.cpp
parentde9cc6ed96c79c70ca9cf22830b3e42cca4f244b (diff)
parent1a2311e3505765e37b736fe6bb46bb229e00701f (diff)
downloadredot-engine-132ba0ed9799db9ed1449fa2f2fc597d4b91612d.tar.gz
Merge pull request #11568 from endragor/loggers
Extract logging logic
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 649f874cf4..206f57d4a2 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);