Max Horn
4d3a07b494
COMMON: Rename and tweak MD5 functions
...
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
as a hex string now returns it as a Common::String
* add doxygen comments
svn-id: r54121
2010-11-07 17:16:59 +00:00
Matthew Hoops
7835ce5cb8
COMMON: Extend getting a Mac resource fork resource with a name
...
Resource names can be the same across types (ie. 'PICT' "Foo" and 'snd ' "Foo"), so this ensures that the right type is chosen in those cases.
svn-id: r52756
2010-09-17 03:55:41 +00:00
Matthew Hoops
d882661aec
COMMON: Cleanup MacResManager::convertCrsrCursor a bit
...
It's now a static function since it doesn't require any local variables and is really separate from the resource fork code. Also, actually assigning the keycolor (which was just being ignored).
svn-id: r52075
2010-08-14 04:03:36 +00:00
Torbjörn Andersson
38b172e8e5
Fixed some Cppcheck warnings. (There are plenty left, if anyone's wondering.)
...
svn-id: r50120
2010-06-21 19:32:25 +00:00
Matthew Hoops
5ceb896b6b
Have the MacResManager ignore resources with length 0.
...
svn-id: r49190
2010-05-24 16:51:33 +00:00
Jordi Vilalta Prat
474b804e33
Make the MacResManager opening more robust to failed tries and plug its memory leaks
...
svn-id: r49116
2010-05-20 13:46:18 +00:00
Eugene Sandulenko
15986b81c2
Added getBaseFileName() method and enhanced open() with trying macbinary format in plain files
...
svn-id: r49074
2010-05-18 10:39:08 +00:00
Matthew Hoops
fab2e2a8c4
Fix mismatched new[]/delete[]
...
svn-id: r49018
2010-05-12 20:22:10 +00:00
Matthew Hoops
8b1cb63de3
Pass by reference instead of value to getResource(String)
...
svn-id: r49008
2010-05-11 19:13:24 +00:00
Matthew Hoops
59476e44b9
Add support for getting a resource from the resource fork by name.
...
svn-id: r49004
2010-05-11 15:38:21 +00:00
Matthew Hoops
b9813063ad
Add support to the MacResManager and AdvancedDetector to take the md5 of a resource fork. This introduces a new flag, ADGF_MACRESFORK, which when set will take the md5 and size from the resource fork instead of the data fork.
...
svn-id: r48997
2010-05-10 18:23:54 +00:00
Matthew Hoops
cdf30ecc5a
Minor fix for using the MacResManager with a regular file; switch MacBinary's data fork to using a SeekableSubReadStream instead of a MemoryReadStream.
...
svn-id: r48995
2010-05-10 00:50:37 +00:00
Eugene Sandulenko
57f2425b28
Patch #2901515 : HE: Resource Forks on Mac OS X
...
svn-id: r48984
2010-05-09 18:27:56 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Eugene Sandulenko
80ee1de8e4
Move Mac Binary resource loader to common class. Plug tons of memory leaks along the way.
...
svn-id: r47258
2010-01-11 20:41:07 +00:00