diff options
author | Max Horn | 2004-06-27 22:14:35 +0000 |
---|---|---|
committer | Max Horn | 2004-06-27 22:14:35 +0000 |
commit | b8ad54b3af1de97bf986e7e4d4da97f02ece3273 (patch) | |
tree | 59bb3fbadaa8857a75010692593bef3a866d49cb /common | |
parent | a461c7550e2260601a63cd113a31254f2fd3ef50 (diff) | |
download | scummvm-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.cpp | 2 | ||||
-rw-r--r-- | common/file.h | 3 |
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; |