Commit Graph

177 Commits

Author SHA1 Message Date
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Eugene Sandulenko
caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko
806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Johannes Schickel
645ba4c379 SOUND: Get rid of unused forward declarations in mixer.h.
svn-id: r55197
2011-01-10 22:20:51 +00:00
Matthew Hoops
375f32fbe9 VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
svn-id: r54927
2010-12-16 01:35:13 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
David Turner
71d0526834 TUCKER: Added basic debugging console to engine
Tucker does not currently use Debug Channels, but this does provide a base for adding them along with any other debugging commands.

svn-id: r54141
2010-11-08 12:24:18 +00:00
Johannes Schickel
ce733ab75a TUCKER: Add GUIO_NOLAUNCHLOAD to the detection flags.
svn-id: r54126
2010-11-07 19:13:30 +00:00
Max Horn
18d40017e8 ENGINES: Unify code layout of all ADParams instances
svn-id: r54105
2010-11-07 01:01:18 +00:00
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00
Eugene Sandulenko
44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
4d517ed0e9 Extended advancedDetector with depth parameter.
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.

svn-id: r49653
2010-06-14 14:50:23 +00:00
Gregory Montoir
548015ac10 add missing decodeNextAnimationFrame in default case for sequence 9
svn-id: r49458
2010-06-06 14:18:16 +00:00
Gregory Montoir
536e6a9bc3 fix sequence frame numbering (decrement if getCurFrame now returns the last decoded frame number)
svn-id: r49455
2010-06-06 13:40:15 +00:00
Gregory Montoir
8e6cc1201a use palette image during sequence 3 scrolling
svn-id: r49452
2010-06-06 13:31:19 +00:00
Matthew Hoops
11cbdd0318 Committing the rest of the VideoDecoder Rewrite from patch #2963496.
svn-id: r49079
2010-05-18 14:17:24 +00:00
Max Horn
b3e404109c Move initGraphics and initCommonGFX from to new header.
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.

svn-id: r48934
2010-05-04 11:58:12 +00:00
Gregory Montoir
4decff1a92 fix missing sound effects during introduction with non French versions.
svn-id: r48801
2010-04-25 21:53:27 +00:00
Max Horn
a1840bd573 AUDIO: Rename Mixer::playInputStream to playStream
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Johannes Schickel
fe35d372da - Rename FlacStream to FLACStream.
- Rename makeFlacStream to makeFLACStream.

svn-id: r47846
2010-02-03 09:42:11 +00:00
Johannes Schickel
a505d32eff Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
svn-id: r47716
2010-01-30 15:26:54 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
4b996e7de7 Reorder params to Audio::makeRawMemoryStream
svn-id: r47492
2010-01-23 23:55:35 +00:00
Max Horn
dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
69be747621 Move raw audio streams to new header sound/raw.h
svn-id: r47368
2010-01-19 00:54:06 +00:00
Max Horn
349fcd1d71 Rename 'Linear' audio streams to 'raw'
svn-id: r47367
2010-01-19 00:52:41 +00:00
Max Horn
7ec2da968c Switch most AudioStream factories to use DisposeAfterUse::Flag
svn-id: r47334
2010-01-16 21:36:08 +00:00
Johannes Schickel
6ca0570fe3 - Add a SubLoopingAudioStream, which loops a nested part of a stream and thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream.
- Remove custom looping code from LinearMemoryStream and LinearDiskStream.
- Adapt various client code to the changes.

svn-id: r47226
2010-01-10 15:20:14 +00:00
Johannes Schickel
616e4626f5 Since AudioStream looping is no longer handled by the Mixer, drop Mixer::playAudioStreamLooping. (There's Audio::makeLoopingAudioStream).
svn-id: r47160
2010-01-08 16:27:29 +00:00
Johannes Schickel
b47725540f Cleanup.
svn-id: r47133
2010-01-07 17:04:32 +00:00
Johannes Schickel
771867fd1b Do not try to destroy an object on the stack via delete.
svn-id: r47131
2010-01-07 16:49:23 +00:00
Johannes Schickel
4f52dcea66 Adapt TUCKER to use RewindableAudioStream and Mixer::playInputStreamLooping. (Needs testing, please :-)
svn-id: r47130
2010-01-07 16:44:17 +00:00
Johannes Schickel
d5fe29c3c9 Make makeWAVStream return a RewindableAudioStream.
svn-id: r47129
2010-01-07 16:34:56 +00:00
Johannes Schickel
b80779824f - Strip custom looping code out of FLAC, Vorbis and MP3 streams
- Adapt the legacy make*Stream factories to use the new AudioStream subclasses
- Change return value of make*Stream back to AudioStream *

svn-id: r47111
2010-01-07 14:22:24 +00:00
Johannes Schickel
f5c3bd887e - Add a new SeekableAudioStream interface. Soon to be used to replace audio stream specific looping code by generic code in Mixer...
- Adapted some existing AudioStreams to implement that interface (not tested!)

svn-id: r47013
2010-01-05 02:27:24 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Gregory Montoir
a85b22e092 TUCKER: fix several issues in ending sequences (tracker item #2872355 - Minor bugs outro)
svn-id: r45200
2009-10-17 20:06:46 +00:00
Max Horn
d4d1346ceb TUCKER: Convert one more loadWAVFromStream instance to makeWAVStream
svn-id: r45101
2009-10-14 23:30:06 +00:00
Max Horn
6a2985ba08 Patch #2834677: Wave/ADPCM Endianness Fixes
svn-id: r45095
2009-10-14 22:37:05 +00:00
Gregory Montoir
fc77520429 TUCKER: fix original game glitch (tracker item #2872385 - Fish swims out of aquarium)
svn-id: r44899
2009-10-11 09:26:36 +00:00
Gregory Montoir
d971b0737a TUCKER: ignore selected verb when displaying options (tracker item #2872383 - Look at options)
svn-id: r44898
2009-10-11 09:25:31 +00:00
Gregory Montoir
0f564aad81 TUCKER: add clipping for text drawing
svn-id: r44393
2009-09-27 10:36:45 +00:00
Gregory Montoir
1b1471e8da TUCKER: add missing compressed file close when version doesn't match
svn-id: r44392
2009-09-27 10:36:30 +00:00
Gregory Montoir
fde3814fbc TUCKER: skip sound file loading if not available in compressed bundle
svn-id: r43736
2009-08-25 21:42:12 +00:00
Gregory Montoir
e4d04fec8d TUCKER: add support for commpressed intro sound effects
svn-id: r43733
2009-08-25 21:28:29 +00:00
Gregory Montoir
cce199c48b TUCKER: some dirty rects handling fixes
svn-id: r43732
2009-08-25 21:26:56 +00:00
Torbjörn Andersson
762d2dc03a Removed unnecessary semi-colons.
svn-id: r43409
2009-08-15 14:13:48 +00:00
Gregory Montoir
c9ac83c2c0 fix bug #2597980 - TUCKER: Sprite glitch
svn-id: r42610
2009-07-19 11:07:17 +00:00
Max Horn
6b98c4c4e7 Got rid of some more ioFailed uses (also fixed a potential leak in graphics/font.cpp, and handle eos correctly in the FLAC code)
svn-id: r42488
2009-07-14 18:24:20 +00:00
Gregory Montoir
230bd03913 tucker: added workaround for original game glitch (tracker item #2597763)
svn-id: r42458
2009-07-13 22:19:10 +00:00
Gregory Montoir
b98fdb997d tucker: fixed issues with dirty rects handling (tracker item #2597763)
svn-id: r42456
2009-07-13 22:11:54 +00:00
Gregory Montoir
5a03e5cca1 simplified .raw/.wav data files handling in introduction sequences
svn-id: r41520
2009-06-14 15:07:34 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
b7f8990ba8 Renamed the DXA, SMK and FLIC video decoders to reflect the fact that they're decoders, not players
svn-id: r40759
2009-05-21 13:02:56 +00:00
Gregory Montoir
f2668f8a7d simplified sound handling in animation sequences
svn-id: r40747
2009-05-21 01:30:28 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Gregory Montoir
0ceb92871b cleanup
svn-id: r40646
2009-05-17 13:25:08 +00:00
Gregory Montoir
883e567f5e fix display of machine.flc (alternative fix would be to use the COGS00xy.PCX files directly and get rid of this second .flc file)
svn-id: r40645
2009-05-17 13:22:33 +00:00
Filippos Karapetis
6f0b6b5aed Changed the FLIC player to the common VideoDecoder interface. Note that currently the double animation in Bud Tucker's intro credits is broken, as the second background animation is not played
svn-id: r40638
2009-05-17 08:44:20 +00:00
Max Horn
a3efc5611c Fixed various GCC 4.2 warnings, among them an actual longstanding bug (3 years :) in the quicktime midi code
svn-id: r40577
2009-05-14 23:09:04 +00:00
Gregory Montoir
2fd66d8eae some cleanup :
- separated instruction table parsing from instruction execution
- added a few debug calls to monitor game flags changes
- some variables/functions renaming

svn-id: r40454
2009-05-11 14:04:44 +00:00
Max Horn
f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +00:00
Max Horn
dd98126423 Engines: Fused several init&go methods into a single run method
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
3fcbda829a Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
svn-id: r39002
2009-03-01 04:30:55 +00:00
Gregory Montoir
478fa21838 fix for tracker item #2628896 TUCKER: Invisible Raincoat bug
svn-id: r38991
2009-03-01 00:51:59 +00:00
Gregory Montoir
40a2485050 fix for tracker item #2627942 TUCKER: Brainroom/Information Room Graphics glitch
svn-id: r38990
2009-03-01 00:51:14 +00:00
Gregory Montoir
db7073b15a cleanup
svn-id: r38685
2009-02-21 11:29:56 +00:00
Gregory Montoir
c39b5f5c6f force inventory redraw after a game state load (inventory should now be ok when exiting GMM, should fix #2603197)
svn-id: r38682
2009-02-21 11:26:50 +00:00
Kostas Nakos
0a04d30753 apply patch #2603528: PCX loading (convenience only)
svn-id: r38348
2009-02-16 06:43:33 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Gregory Montoir
36767120e1 correct sprite state for location 43 (fixes #2600759)
svn-id: r38188
2009-02-15 01:48:18 +00:00
Gregory Montoir
b2b37d3d67 fixed invalid dirty rect for infobar ; added code difference in infobar display for DE version (tracker items #2523881,2523924)
svn-id: r36160
2009-01-31 09:44:27 +00:00
Max Horn
28cf213605 Moved AdvancedDetector from common/ to engines/
svn-id: r36132
2009-01-29 22:13:01 +00:00
Gregory Montoir
164a099c7f restrict charwidth table patch to french version, should fix #2523924
svn-id: r36129
2009-01-29 21:31:44 +00:00
Gregory Montoir
3f06e9c4eb fix #2543067 'crash on Bud Tucker in Double Trouble german version', don't copy rect if w or h <= 0
svn-id: r36123
2009-01-28 21:43:26 +00:00
Gregory Montoir
4999677c57 added a few more code differences, demo version is now completable
svn-id: r36063
2009-01-25 18:08:26 +00:00
Gregory Montoir
7f594fa21d TUCKER: modified flic playback to make use of dirtyrects
svn-id: r36060
2009-01-25 12:10:06 +00:00
Gregory Montoir
e5feb689df added detection entry for playable demo and some code differences
svn-id: r36044
2009-01-24 21:03:44 +00:00
Gregory Montoir
1511099a7b merged Graphics::copyTo640/Graphics::copyFrom640
svn-id: r35892
2009-01-18 04:00:11 +00:00
Gregory Montoir
8ea8966c02 cleanup
svn-id: r35891
2009-01-18 03:22:33 +00:00
Gregory Montoir
710b7fe461 get rid of AnimationSequencePlayer::_currentSeqNum
svn-id: r35890
2009-01-18 03:07:20 +00:00
Gregory Montoir
5a809e51be simplified Graphics::decode*()
svn-id: r35889
2009-01-18 02:46:25 +00:00
Gregory Montoir
8f85a81791 splitted play/load class methods in introduction animation player
svn-id: r35887
2009-01-18 00:55:51 +00:00
Max Horn
736fea2c0e tiny cleanup
svn-id: r35878
2009-01-16 23:29:48 +00:00
Max Horn
d53a340a4d Some cleanup (one could replace some of those switch/case by jump tables...)
svn-id: r35876
2009-01-16 23:18:18 +00:00
Max Horn
0a169612ee TUCKER: Got rid of _fileToLoad
svn-id: r35875
2009-01-16 21:19:30 +00:00
Max Horn
c0e1dbf1ac TUCKER: Changed loadFile and loadImage to take filename as parameter (trying to get rid of _fileToLoad)
svn-id: r35874
2009-01-16 21:08:55 +00:00
Max Horn
1082d82ba8 TUCKER: Simplify TuckerEngine::copyLocBitmap
svn-id: r35873
2009-01-16 20:53:43 +00:00
Filippos Karapetis
7f9ea7e35c Added Doxygen-like comments to the FLIC player, and changed it a bit to have similar method names as the DXA and Smacker players. Also, removed the convenience method hasFrames(), as it's the same as getFrameCount() > 0
svn-id: r35741
2009-01-05 15:10:13 +00:00
Gregory Montoir
3a4b4831dc reorganized introduction sequence static data (to simplify code when using compressed audio files)
svn-id: r35710
2009-01-03 22:12:10 +00:00
Max Horn
df20d264fd Pushing down some header deps (on common/system.h, mostly)
svn-id: r35542
2008-12-25 20:40:00 +00:00