mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +00:00
Changed FSDirectory::getSubDirectory to return a FSDirectory pointer instead of a SharedPtr
svn-id: r34334
This commit is contained in:
parent
cf7ab829e3
commit
5409b2b456
@ -93,14 +93,13 @@ SeekableReadStream *FSDirectory::openFile(const String &name) {
|
||||
return stream;
|
||||
}
|
||||
|
||||
SharedPtr<FSDirectory> FSDirectory::getSubDirectory(const String &name) {
|
||||
FSDirectory *FSDirectory::getSubDirectory(const String &name) {
|
||||
if (name.empty() || !_node.isDirectory()) {
|
||||
// return a null SharedPtr
|
||||
return SharedPtr<FSDirectory>();
|
||||
return 0;
|
||||
}
|
||||
|
||||
FilesystemNode node = lookupCache(_subDirCache, name);
|
||||
return SharedPtr<FSDirectory>(new FSDirectory(node));
|
||||
return new FSDirectory(node);
|
||||
}
|
||||
|
||||
void FSDirectory::cacheDirectoryRecursive(FilesystemNode node, int depth, const String& prefix) {
|
||||
|
@ -136,7 +136,7 @@ public:
|
||||
* Create a new FSDirectory pointing to a sub directory of the instance.
|
||||
* @return A new FSDirectory instance conveniently wrapped in a SharedPtr.
|
||||
*/
|
||||
SharedPtr<FSDirectory> getSubDirectory(const String &name);
|
||||
FSDirectory *getSubDirectory(const String &name);
|
||||
|
||||
virtual bool hasFile(const String &name);
|
||||
virtual int matchPattern(StringList &list, const String &pattern);
|
||||
|
Loading…
x
Reference in New Issue
Block a user