diff options
-rw-r--r-- | common/file.cpp | 2 | ||||
-rw-r--r-- | common/file.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp index 7f81cdddf1..726b57b991 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -138,7 +138,7 @@ File::~File() { delete [] _name; } -bool File::open(const char *filename, const char *directory, int mode, byte encbyte) { +bool File::open(const char *filename, const char *directory, AccessMode mode, byte encbyte) { if (_handle) { debug(2, "File %s already opened", filename); return false; diff --git a/common/file.h b/common/file.h index 6bf281ff92..eb98151eb0 100644 --- a/common/file.h +++ b/common/file.h @@ -39,7 +39,7 @@ private: static Common::String _defaultDirectory; public: - enum { + enum AccessMode { kFileReadMode = 1, kFileWriteMode = 2 }; @@ -49,7 +49,7 @@ public: File(); virtual ~File(); bool open(const char *filename, const Common::String &directory) { return open(filename, directory.c_str()); } - bool open(const char *filename, const char *directory = NULL, int mode = kFileReadMode, byte encbyte = 0); + bool open(const char *filename, const char *directory = NULL, AccessMode mode = kFileReadMode, byte encbyte = 0); void close(); bool isOpen() const; bool ioFailed() const; |