Commit Graph

35 Commits

Author SHA1 Message Date
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
8a80e2284a Removing _ptrOrig (hi Torbjorn, have fun recompiling)
svn-id: r25980
2007-03-04 16:25:27 +00:00
Max Horn
2cbe50c5ec Typo
svn-id: r25861
2007-02-25 19:08:57 +00:00
Max Horn
198f32ea8e Add some doxygen comments to Common::Stream
svn-id: r25859
2007-02-25 18:35:51 +00:00
Max Horn
42f11e9e49 Added new ReadStream::readStream method which can be used to read a portion of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream
svn-id: r25754
2007-02-20 21:41:01 +00:00
Max Horn
fb9c08f101 Removed XORReadStream (it was unused); enhanced MemoryReadStream to be able to dispose the memory block it wraps (simplifies memory management)
svn-id: r25748
2007-02-20 17:52:02 +00:00
Max Horn
7290d1b18c Enhance (Seekable)SubReadStream so be able to (optionally) dispose the parent stream after it's been used (simplifies memory management for client code)
svn-id: r25732
2007-02-19 21:11:13 +00:00
Max Horn
cce7cba3b4 Patch #1583931: (Seekable)SubReadStream
svn-id: r24713
2006-11-13 20:58:21 +00:00
Max Horn
7383f81d2f Added a 'skip' method to SeekableReadStream (just an alias for seek(X, SEEK_CUR))
svn-id: r22178
2006-04-26 10:54:32 +00:00
Max Horn
36934b611d Change CVS keywords to SVN keywords
svn-id: r20510
2006-02-11 09:53:53 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Marcus Comstedt
57e1c6451d Improved savefile error handling:
* New flush() method in WriteStream class to flush pending I/O, in order
  to detect any I/O errors

* Use of flush() and ioFailed() added to scumm engine save function

* Dreamcast backend extended to support the new checks

svn-id: r19066
2005-10-13 18:50:53 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Torbjörn Andersson
1d39f986c9 Whitespace changes.
svn-id: r18449
2005-06-24 16:08:31 +00:00
Max Horn
8b1d7b9166 When including files from common/, explicitly use the common/ prefix
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
096e04ef05 Added virtual destructor, to silence a few more GCC 4 warnings
svn-id: r18419
2005-06-20 17:59:00 +00:00
Max Horn
d00117ec4b Fixed some doxygen warnings
svn-id: r17923
2005-05-05 15:59:24 +00:00
Max Horn
b515dd1333 Moved Stream::eos() to ReadStream::eos()
svn-id: r17853
2005-04-28 20:59:19 +00:00
Max Horn
969ef3dac9 * Added new virtual base class 'Stream', ReadStream and
WriteStream are now subclasses of it.
* Added new methods eos(), ioFailed(), clearIOFailed() to
  all streams. This allows better error checking.
* SaveFile classes take advantage of these new standard
  stream APIS
* Removed File::gets()
* Added SeekableReadStream::readLine() (replaces File::gets)
* Added WriteStream::writeString, for convenience

svn-id: r17752
2005-04-22 17:40:09 +00:00
Eugene Sandulenko
9c772ce7d8 Forgot to init _encbyte in MemoryReadStream.
svn-id: r17301
2005-03-30 22:01:17 +00:00
Eugene Sandulenko
7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Max Horn
0423866e0a Ensure these headers match the rest of ScummVM
svn-id: r16505
2005-01-09 16:07:53 +00:00
Max Horn
bc44b5ec15 Added new interface SeekableReadStream
svn-id: r16493
2005-01-09 01:41:43 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
41a7e6674c Remove the 24 bit read/write methods -- we don't use them anymore and they are weird anyway ;-)
svn-id: r16037
2004-12-11 23:50:39 +00:00
Max Horn
369e31a41c Modified version of patch #1082777 (common/stream optimization)
svn-id: r16034
2004-12-11 23:16:36 +00:00
Bertrand Augereau
52701d581b Changed order of initialisation in XORReadStream::XORReadStream() to match order of declaration, to avoid a pedantic warning
svn-id: r14273
2004-07-19 10:20:00 +00:00
Max Horn
a1b82d8e13 Cleanup for MemoryReadStream; made it match the File-class interface
svn-id: r14086
2004-06-27 21:30:33 +00:00
Eugene Sandulenko
264dc1349b Extended ReadMemoryStream class with seek method
svn-id: r14030
2004-06-24 14:06:22 +00:00
Eugene Sandulenko
b9ebd68022 Enchance ReadStream and MemoryReadStream with 24bits operations as well
as tell() and rewind() methods, as needed by SAGA engine.

svn-id: r13772
2004-05-04 03:27:00 +00:00
Eugene Sandulenko
f7f485464d Well, now we use MemoryReadStream at least in SAGA engine.
Concept proved itself to be elegant and successful

svn-id: r13770
2004-05-03 23:08:22 +00:00
Max Horn
33ef0d0a4b Added signed read/write methods to the Stream classes
svn-id: r13680
2004-04-29 20:28:42 +00:00
Max Horn
9defe4fc18 Removed XOR encoding stuff from File class; instead the new Scumm::XORFile class provides this functionality now
svn-id: r13597
2004-04-17 16:29:03 +00:00
Max Horn
e17a15d96e Introduce ReadStream and WriteStream (as explained in my File class design mails on scummvm-devel)
svn-id: r13595
2004-04-17 09:57:15 +00:00