From 9cb88728511c314695731d92cb4ab16c8e3b051e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 23 Apr 2012 21:20:32 +0000 Subject: Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers) git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cFile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/cFile.h') diff --git a/source/cFile.h b/source/cFile.h index 390847eaf..567c98219 100644 --- a/source/cFile.h +++ b/source/cFile.h @@ -86,6 +86,9 @@ public: /// Reads the file from current position till EOF into an AString; returns the number of bytes read or -1 for error int ReadRestOfFile(AString & a_Contents); + /// Returns true if the file specified exists + static bool Exists(const AString & a_FileName); + private: #ifdef USE_STDIO_FILE FILE * m_File; -- cgit v1.2.3