summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.cpp
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-03-02 21:49:49 +0100
committer ImJezze <jezze@gmx.net>2016-03-02 21:49:49 +0100
commit9fe9f6d93e672bcd926f9e7461774bc9cc22e094 (patch)
tree3911b611dd010a4108b90fb8b8c82116eec21117 /src/emu/fileio.cpp
parentdbdf21ee465acadf3e643d62d6bedfcc297ada85 (diff)
parent1914702e6fae052668df5b068a502bca57c9a3b0 (diff)
Merge remote-tracking branch 'refs/remotes/mamedev/master'
# Resolved Conflicts: # src/osd/modules/render/d3d/d3dhlsl.cpp # src/osd/windows/winmain.cpp
Diffstat (limited to 'src/emu/fileio.cpp')
-rw-r--r--src/emu/fileio.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/emu/fileio.cpp b/src/emu/fileio.cpp
index 0de5e021800..d13e162f990 100644
--- a/src/emu/fileio.cpp
+++ b/src/emu/fileio.cpp
@@ -626,6 +626,17 @@ int emu_file::puts(const char *s)
//-------------------------------------------------
+// vfprintf - vfprintf to a text file
+//-------------------------------------------------
+
+int emu_file::vprintf(const char *fmt, va_list va)
+{
+ // write the data if we can
+ return (m_file != nullptr) ? core_vfprintf(m_file, fmt, va) : 0;
+}
+
+
+//-------------------------------------------------
// printf - vfprintf to a text file
//-------------------------------------------------
@@ -641,13 +652,14 @@ int CLIB_DECL emu_file::printf(const char *fmt, ...)
//-------------------------------------------------
-// mame_vfprintf - vfprintf to a text file
+// flush - flush file buffers
//-------------------------------------------------
-int emu_file::vprintf(const char *fmt, va_list va)
+void emu_file::flush()
{
- // write the data if we can
- return (m_file != nullptr) ? core_vfprintf(m_file, fmt, va) : 0;
+ // flush the buffers if we can
+ if (m_file != nullptr)
+ core_fflush(m_file);
}