aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/package/packagemanager.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-15 08:50:03 +0000
committerEugene Sandulenko2010-10-12 22:47:38 +0000
commit0cdab788ae651f428d5f6b7e1ee24b26c4814eff (patch)
tree03f92634ddb02f653aeb5177ef598bb00beb8c1c /engines/sword25/package/packagemanager.h
parent28d81a2a1c98dc082c54cf0770d11142910ec208 (diff)
downloadscummvm-rg350-0cdab788ae651f428d5f6b7e1ee24b26c4814eff.tar.gz
scummvm-rg350-0cdab788ae651f428d5f6b7e1ee24b26c4814eff.tar.bz2
scummvm-rg350-0cdab788ae651f428d5f6b7e1ee24b26c4814eff.zip
SWORD25: Changed signature of FS searching method. Cleanup.
svn-id: r53248
Diffstat (limited to 'engines/sword25/package/packagemanager.h')
-rw-r--r--engines/sword25/package/packagemanager.h40
1 files changed, 3 insertions, 37 deletions
diff --git a/engines/sword25/package/packagemanager.h b/engines/sword25/package/packagemanager.h
index 92eb82f6e9..73601b1f68 100644
--- a/engines/sword25/package/packagemanager.h
+++ b/engines/sword25/package/packagemanager.h
@@ -50,11 +50,12 @@
#ifndef SWORD25_PACKAGE_MANAGER_H
#define SWORD25_PACKAGE_MANAGER_H
-// Includes
#include "sword25/kernel/common.h"
#include "sword25/kernel/kernel.h"
#include "sword25/kernel/service.h"
+#include "common/archive.h"
+
namespace Sword25 {
// Class definitions
@@ -79,41 +80,6 @@ public:
};
/**
- * File search class
- *
- * These objects are created with BS_PackageManager::CreateSearch
- */
- class FileSearch {
- public:
- virtual ~FileSearch() {};
-
- /**
- * Returns the filename of the current file
- * @return Returns the filename of the current file
- */
- virtual Common::String GetCurFileName() = 0;
- /**
- * Returns the type of the current file
- * @return Returns the type of the current file
- * This is either BS_PackageManager::FT_FILE or BS_PackageManager::FT_DIRECTORY.
- */
- virtual unsigned int GetCurFileType() = 0;
- /**
- * Returns the size of the current file
- * @return Returns the size of the current file
- * For directories, this value is always 0
- */
- virtual unsigned int GetCurFileSize() = 0;
- // Finds the next file
- // Returns false if no more files are found.
- /**
- * Finds the next file.
- * @return Returns false if no other file fulfills the search criteria
- */
- virtual bool NextFile() = 0;
- };
-
- /**
* Mounts the contents of a package in the directory specified in the virtual directory tree.
* @param FileName The filename of the package to mount
* @param MountPosition The directory name under which the package should be mounted
@@ -167,7 +133,7 @@ public:
* @return Specifies a pointer to a BS_PackageManager::FileSearch object, or NULL if no file was found.
* @remark Do not forget to delete the object after use.
*/
- virtual FileSearch *CreateSearch(const Common::String &Filter, const Common::String &Path, unsigned int TypeFilter = FT_DIRECTORY | FT_FILE) = 0;
+ virtual int doSearch(Common::ArchiveMemberList &list, const Common::String &Filter, const Common::String &Path, unsigned int TypeFilter = FT_DIRECTORY | FT_FILE) = 0;
/**
* Returns a file's size