summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 15:50:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 15:50:05 +0200
commitcd5acb228cae597e7eff28527981f41699cfc441 (patch)
treee1e2c37b4da086bbfb6fbde77cfdcbc5732c7522 /source/OSSupport/File.cpp
parentMade beds placeable (diff)
downloadcuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar.gz
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar.bz2
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar.lz
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar.xz
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.tar.zst
cuberite-cd5acb228cae597e7eff28527981f41699cfc441.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/File.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/OSSupport/File.cpp b/source/OSSupport/File.cpp
index fdae0b34e..7fbaf218f 100644
--- a/source/OSSupport/File.cpp
+++ b/source/OSSupport/File.cpp
@@ -269,3 +269,17 @@ bool cFile::Exists(const AString & a_FileName)
+
+int cFile::Printf(const char * a_Fmt, ...)
+{
+ AString buf;
+ va_list args;
+ va_start(args, a_Fmt);
+ AppendVPrintf(buf, a_Fmt, args);
+ va_end(args);
+ return Write(buf.c_str(), buf.length());
+}
+
+
+
+