aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2004-06-27 22:14:35 +0000
committerMax Horn2004-06-27 22:14:35 +0000
commitb8ad54b3af1de97bf986e7e4d4da97f02ece3273 (patch)
tree59bb3fbadaa8857a75010692593bef3a866d49cb /common
parenta461c7550e2260601a63cd113a31254f2fd3ef50 (diff)
downloadscummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.tar.gz
scummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.tar.bz2
scummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.zip
Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
svn-id: r14090
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;