aboutsummaryrefslogtreecommitdiff
path: root/common/macresman.h
diff options
context:
space:
mode:
authorMatthew Hoops2013-07-11 20:47:33 -0400
committerMatthew Hoops2013-07-11 23:45:19 -0400
commit1f6894ab25e95324e6847f3912812b4f5de8af6f (patch)
treecb76b7b8f4e479d9bb56cd5982581a158c11ab0d /common/macresman.h
parent8b71a631ea392496f618b3f7bddb29963ced3592 (diff)
downloadscummvm-rg350-1f6894ab25e95324e6847f3912812b4f5de8af6f.tar.gz
scummvm-rg350-1f6894ab25e95324e6847f3912812b4f5de8af6f.tar.bz2
scummvm-rg350-1f6894ab25e95324e6847f3912812b4f5de8af6f.zip
COMMON: Cleanup the MacResManager a bit
Diffstat (limited to 'common/macresman.h')
-rw-r--r--common/macresman.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/common/macresman.h b/common/macresman.h
index ed74da9cc6..cca6592f21 100644
--- a/common/macresman.h
+++ b/common/macresman.h
@@ -54,27 +54,32 @@ public:
/**
* Open a Mac data/resource fork pair.
+ *
+ * This uses SearchMan to find the data/resource forks. This should only be used
+ * from inside an engine.
+ *
* @param filename The base file name of the file
* @note This will check for the raw resource fork, MacBinary, and AppleDouble formats.
* @return True on success
*/
- bool open(String filename);
+ bool open(const String &fileName);
/**
* Open a Mac data/resource fork pair.
+ *
* @param path The path that holds the forks
* @param filename The base file name of the file
* @note This will check for the raw resource fork, MacBinary, and AppleDouble formats.
* @return True on success
*/
- bool open(FSNode path, String filename);
+ bool open(const FSNode &path, const String &fileName);
/**
* See if a Mac data/resource fork pair exists.
* @param filename The base file name of the file
* @return True if either a data fork or resource fork with this name exists
*/
- static bool exists(const String &filename);
+ static bool exists(const String &fileName);
/**
* Close the Mac data/resource fork pair.
@@ -94,12 +99,6 @@ public:
bool hasResFork() const;
/**
- * Check if the given stream is in the MacBinary format.
- * @param stream The stream we're checking
- */
- static bool isMacBinary(SeekableReadStream &stream);
-
- /**
* Read resource from the MacBinary file
* @param typeID FourCC of the type
* @param resID Resource ID to fetch
@@ -176,7 +175,13 @@ private:
bool loadFromMacBinary(SeekableReadStream &stream);
bool loadFromAppleDouble(SeekableReadStream &stream);
- static Common::String constructAppleDoubleName(Common::String name);
+ static String constructAppleDoubleName(String name);
+
+ /**
+ * Check if the given stream is in the MacBinary format.
+ * @param stream The stream we're checking
+ */
+ static bool isMacBinary(SeekableReadStream &stream);
enum {
kResForkNone = 0,