Commit Graph

43 Commits

Author SHA1 Message Date
D G Turner
a1998abed4 COMMON: Fix missing arjDecoder class variable init. CID 1002929
This fixes a couple of these variables by removing them as they
are unused or set-but-unused variables.
2013-10-05 07:02:18 +01:00
Andrea Corna
a6ec4f70da COMMON: Make more members of Archive constant. 2011-12-13 17:55:57 +01:00
Christoph Mallon
84220d2ca0 COMMON: Remove superfluous Common:: qualifiers. 2011-08-07 15:19:07 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
David Turner
f7e1ed3762 COMMON: Fixed memory leakage in unarj readHeader().
This manifested in Drascula.

svn-id: r55582
2011-01-28 02:56:07 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
152e52d015 COMMON: Make implementation of Buffered*Stream classes internal
svn-id: r54326
2010-11-18 17:02:51 +00:00
Johannes Schickel
e5e94d4511 Strip trailing whitespaces in our common code base.
svn-id: r51094
2010-07-21 18:17:51 +00:00
Johannes Schickel
caf31ee5af Replace various strncpy usages by strlcpy.
svn-id: r48955
2010-05-05 17:54:12 +00:00
Nicola Mettifogo
62741adf23 Merged _headers and _filemap.
svn-id: r48012
2010-02-09 01:07:39 +00:00
Max Horn
584a58fbce Reduce header interdependencies
svn-id: r48010
2010-02-08 21:51:36 +00:00
Max Horn
b3da11ba8a Introduce factory function makeArjArchive, hide ArjArchive class implementation
svn-id: r48009
2010-02-08 21:46:50 +00:00
Nicola Mettifogo
56bf7a20d3 Renamed ArjFile to ArchiveMan, and _arj to _archives.
svn-id: r48000
2010-02-08 18:17:32 +00:00
Nicola Mettifogo
0aefdb7826 Moved ArjFile to drascula.
svn-id: r47999
2010-02-08 17:48:35 +00:00
Nicola Mettifogo
16438e5c4d Fix trunk after fscking up.
svn-id: r47998
2010-02-08 16:56:04 +00:00
Nicola Mettifogo
29c4c30a25 Made ArjFile use a new ArjArchive class.
svn-id: r47997
2010-02-08 16:15:05 +00:00
Nicola Mettifogo
8f6352f5bb Objectified CRC32 calculator.
svn-id: r47996
2010-02-08 16:14:42 +00:00
Nicola Mettifogo
2df073bb68 Shuffled code around a bit.
svn-id: r47995
2010-02-08 16:14:23 +00:00
Nicola Mettifogo
b658c61155 Let ArjFile return a SeekableReadStream instead of implementing
the same interface itself. The caller is now responsible for
deleting the returned streams.

svn-id: r47994
2010-02-08 16:14:04 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Willem Jan Palenstijn
4c797d57d0 Use a BufferedReadStream to buffer ArjFile's input to reduce memory usage
svn-id: r42637
2009-07-21 09:39:58 +00:00
Max Horn
341bc64aaf do not include common/debug.h from common/util.h
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
5bf81acb95 Refactoring the Arj decoder code, phase 4 (done for now, TODO added for future work)
svn-id: r34925
2008-11-07 10:14:57 +00:00
Max Horn
903dd97aa1 Refactoring the Arj decoder code, phase 3 (fixing some more leaks, too)
svn-id: r34924
2008-11-07 09:57:54 +00:00
Max Horn
81431f18cd Refactoring the Arj decoder code, phase 2
svn-id: r34923
2008-11-07 09:50:51 +00:00
Max Horn
060aa5b002 Refactoring the Arj decoder code, phase 1
svn-id: r34922
2008-11-07 09:46:12 +00:00
Max Horn
f2c5d0563f dead code
svn-id: r34900
2008-11-04 20:05:33 +00:00
Max Horn
03d8f7e196 Fixed ambiguous 'else'
svn-id: r34750
2008-10-05 12:18:16 +00:00
Max Horn
a177ebe156 Don't subclass ArjFile from Common::File (there seems to be no good reason for it). BTW, this code is an abomination and should be replaced by an Archive/SearchSet approach
svn-id: r34681
2008-09-29 10:49:36 +00:00
Eugene Sandulenko
eefefa0afa Portability fixes.
svn-id: r34515
2008-09-13 17:41:42 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +00:00
Kostas Nakos
71f4a15e4e hotfix around drascula mem leak problems. see also bug report
svn-id: r33716
2008-08-09 18:12:43 +00:00
Max Horn
0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Filippos Karapetis
b050430b41 Don't attempt to close the arj file if it hasn't been opened
svn-id: r32608
2008-06-08 02:02:06 +00:00
Eugene Sandulenko
12c3798ffb Plug memory leak
svn-id: r32496
2008-06-02 18:19:18 +00:00
Filippos Karapetis
8a0abfb045 Fix for crash that occurs in the unarj's fallback code - _uncompressedData is not allocated when ARJ files have not been opened
svn-id: r32480
2008-06-01 21:57:30 +00:00
Eugene Sandulenko
452d46b3bf Implement file fallback for archives
svn-id: r32476
2008-06-01 21:10:29 +00:00
Filippos Karapetis
f5d9eb32f0 Fixed MSVC warnings
svn-id: r32474
2008-06-01 20:05:21 +00:00
Eugene Sandulenko
8728cd2881 Speed up decoding by memory caching
svn-id: r32472
2008-06-01 19:07:13 +00:00
Eugene Sandulenko
cc74ec5c39 Unarj code based on unarj 2.62. Used by Drascula engine
svn-id: r32460
2008-06-01 11:43:20 +00:00