aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp2
-rw-r--r--common/file.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 24c8907002..26f6fcb603 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -140,7 +140,7 @@ File::~File() {
delete [] _name;
}
-bool File::open(const char *filename, const char *directory, AccessMode mode) {
+bool File::open(const char *filename, AccessMode mode, const char *directory) {
if (_handle) {
debug(2, "File %s already opened", filename);
return false;
diff --git a/common/file.h b/common/file.h
index ba8eb469e4..3a268ecc5b 100644
--- a/common/file.h
+++ b/common/file.h
@@ -48,8 +48,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, AccessMode mode = kFileReadMode);
+ bool open(const char *filename, AccessMode mode = kFileReadMode, const char *directory = NULL);
void close();
bool isOpen() const;
bool ioFailed() const;