mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
Removed 'directory' parameter of File::open
svn-id: r22183
This commit is contained in:
parent
092fd96145
commit
cd528083f9
@ -184,7 +184,7 @@ void File::decRef() {
|
||||
}
|
||||
|
||||
|
||||
bool File::open(const String &filename, AccessMode mode, const char *directory) {
|
||||
bool File::open(const String &filename, AccessMode mode) {
|
||||
assert(mode == kFileReadMode || mode == kFileWriteMode);
|
||||
|
||||
if (filename.empty()) {
|
||||
@ -201,9 +201,8 @@ bool File::open(const String &filename, AccessMode mode, const char *directory)
|
||||
fname.toLowercase();
|
||||
|
||||
const char *modeStr = (mode == kFileReadMode) ? "rb" : "wb";
|
||||
if (mode == kFileWriteMode || directory) {
|
||||
String dir(directory ? directory : "");
|
||||
_handle = fopenNoCase(filename, dir, modeStr);
|
||||
if (mode == kFileWriteMode) {
|
||||
_handle = fopenNoCase(filename, "", modeStr);
|
||||
} else if (_filesMap && _filesMap->contains(fname)) {
|
||||
fname = (*_filesMap)[fname];
|
||||
debug(3, "Opening hashed: %s", fname.c_str());
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
void incRef();
|
||||
void decRef();
|
||||
|
||||
virtual bool open(const String &filename, AccessMode mode = kFileReadMode, const char *directory = NULL);
|
||||
virtual bool open(const String &filename, AccessMode mode = kFileReadMode);
|
||||
static bool exists(const String &filename);
|
||||
|
||||
virtual void close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user