Commit Graph

49 Commits

Author SHA1 Message Date
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
48efab4e5a COMMON: Rename SafeSubReadStream to SafeSeekableSubReadStream.
It actually inherits from SeekableSubReadStream, so it should be named
accordingly.
2012-03-11 00:51:20 +01:00
Sven Hesse
c57fd31246 GOB: Fix 0OT resource loading, used in Geisha
0OT are compressed TOT files. The compression flag in the STK header
is *not* set, and 0OT files are compressed in chunks, not as a whole.
2011-08-26 01:53:16 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
6fb232b9ff GOB: Create a SafeSubReadStream for files in STKs
Instead of memcpy'ing them into a MemoryReadStream.
This is necessary for the lower end PSPs to run Urban Runner with
its comparably big VMD videos.
2011-05-06 16:47:49 +02:00
Sven Hesse
08262d90fb GOB: Fix byte *getFile() for loose files
A very, very stupid error on my part :P

svn-id: r54826
2010-12-07 23:55:27 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Sven Hesse
1421312cf8 GOB: Add listArchives debug console command
svn-id: r53985
2010-10-31 20:51:35 +00:00
Sven Hesse
16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Sven Hesse
835455798f GOB: Remove the now useless helper.h
svn-id: r53491
2010-10-15 13:55:18 +00:00
Sven Hesse
5c48c3fd2b GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()

svn-id: r53490
2010-10-15 13:54:23 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Arnaud Boutonné
f1cb78673a gob - Fix a Valgrind warning occuring in CD games
svn-id: r44774
2009-10-08 08:10:57 +00:00
Arnaud Boutonné
ff70b554ea Playtoons - implement some functions related to hotspot texts
Fascination - initial version of several 'Fascination Window' functions, proper naming of most of fascination OPCODEDRAW and OPCODEGOB functions

svn-id: r44472
2009-09-29 22:43:30 +00:00
Arnaud Boutonné
f6aaafae7c Gob - Silence a Valgrind warning by initializing a variable
svn-id: r44467
2009-09-29 16:56:30 +00:00
Sven Hesse
61e0be75b5 When opening a data stream, don't read the whole file into memory if not necessary. This vastly improves the loading times of Gob3 on small devices
svn-id: r43107
2009-08-08 02:23:04 +00:00
Sven Hesse
3823ae285f Giving Font its own real class
svn-id: r42277
2009-07-09 02:54:10 +00:00
Sven Hesse
17a2f52ac6 Making _numDataChunks unsigned
svn-id: r41875
2009-06-25 18:53:36 +00:00
Sven Hesse
53c4e66b71 Checking for the file's existence in DataIO::getDataStream()
svn-id: r41837
2009-06-24 21:48:13 +00:00
Sven Hesse
dd9e62e31e Adding DataIO::existData()
svn-id: r41752
2009-06-22 10:12:33 +00:00
Max Horn
400d2b10af GOB: Replaced many uses of strdupcpy by Common::String
svn-id: r41077
2009-05-31 16:59:45 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Sven Hesse
10b1b28610 Splitting a few helper functions out of gob.h
svn-id: r40765
2009-05-21 17:12:33 +00:00
Arnaud Boutonné
ee92913683 Patch #2725859 : Added some MD5 to the gob engine, modified the way the first STK and TOT is declared, added inter and draw skeleton for Fascination
svn-id: r40059
2009-04-21 21:44:37 +00:00
Sven Hesse
353a239bdb Preliminary support for extra data and scripts in video files (urgh, this is so...vile).
Used in The Last Dynasty, which now plays a bit further (the video sequences, at least)

svn-id: r35227
2008-12-03 22:14:47 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +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
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
Sven Hesse
eef0a317a2 Added a warning when all chunk slots are full, as that's still a problem in Woodruff (some videos aren't closed correctly yet).
svn-id: r32091
2008-05-13 19:53:14 +00:00
Sven Hesse
220d6ce82f Restructured sound code
svn-id: r31937
2008-05-08 00:47:23 +00:00
Sven Hesse
3ec47374b8 Fixed DataStream::seek() (must have been drunk that day ;))
svn-id: r31857
2008-05-04 03:32:23 +00:00
Paul Gilbert
6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Sven Hesse
f1cbf3f9b6 Added a small safety check to avoid accidently overflowing buffers when reading from files in STKs
svn-id: r28536
2007-08-11 20:59:08 +00:00
Sven Hesse
2e9ca7bf85 Still partly broken/stubby VMD playing
svn-id: r28363
2007-07-31 18:16:33 +00:00
Sven Hesse
34292a6b58 Minor DataIO-cleanup
svn-id: r28349
2007-07-31 01:43:32 +00:00
Sven Hesse
f06f150c76 Restructured and cleaned-up IMD playing
svn-id: r28327
2007-07-30 15:53:38 +00:00
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
Sven Hesse
339c39f8b7 Possible fix for bug #1709124 ("GOB3: (dos/russian) just dont run")
svn-id: r26665
2007-04-28 21:16:13 +00:00
Sven Hesse
ec5a9eee31 - Minor cleanup
- Added Inter_v3 (for new opcode o3_getTotTextItemPart)
- Some fixes to let Gob3 start with the first screen

svn-id: r26383
2007-04-05 13:37:20 +00:00
Sven Hesse
53119f2c5d "char *" -> "byte *" where appropriate
svn-id: r26369
2007-04-02 11:05:09 +00:00
Sven Hesse
d65e05841a - Fixed the IMD playing within mults, the non-interactive Gob3 demo should work better now
- Replaced strcpy with strncpy where appropriate
- Added detection entries for other languages of the multilingual Gob3 CD; bug #1691230

svn-id: r26327
2007-03-30 17:52:31 +00:00
Sven Hesse
623ca88022 - Properly implemented the ImdPlayer
- Some more clean-up

svn-id: r26316
2007-03-29 17:55:39 +00:00
Sven Hesse
2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00
Eugene Sandulenko
24c9735588 Rename special debug levels to conform our suggested naming scheme.
svn-id: r25073
2007-01-13 15:35:02 +00:00
Sven Hesse
d6f1ba1540 - More GOB2 map conversions
- Added Music_Dummy (for --music-driver=null)
- Implemented IMDs. That took longer than I expected...
  On the bright side, Ween's intro now plays more correctly

svn-id: r22754
2006-05-29 18:24:52 +00:00
Max Horn
d9a9fac937 Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
svn-id: r21141
2006-03-08 11:37:25 +00:00
Sven Hesse
1758260c39 Changed debug()s to debugC()s
svn-id: r20848
2006-02-24 23:31:31 +00:00
Max Horn
26ee630756 Moved engines to the new engines/ directory
svn-id: r20582
2006-02-11 22:45:04 +00:00