Eugene Sandulenko
fa2b0a0dd2
SAGA: Fix bug #2827504 .
...
Bug #2827504 : "ITE: Music restarts on every background change in
credits". We errorneously were stopping music on each scene,
though it appeared only with Adlib music.
svn-id: r49728
2010-06-15 10:26:29 +00:00
Eugene Sandulenko
51c22b39c8
SAGA: Fix bug #2928923 .
...
Bug #2928923 : 'ITE: Graphic Glitches during racoon death "Cut Scene"'.
Disable actor drawing for these scenes. A long standing bug in
original.
svn-id: r49727
2010-06-15 10:26:10 +00:00
Eugene Sandulenko
fead2bb719
SAGA: Fix bug #2886130 .
...
Bug #2886130 : "ITE: Graphic Glitches during Cat Tribe Celebration".
We redraw statusbar for this scene. Bug in original.
svn-id: r49726
2010-06-15 10:25:50 +00:00
Eugene Sandulenko
d1c34efad9
SAGA: Fix bug #2886141 .
...
Bug #2886141 : "ITE: Cumulative Snoring sounds in Prince's Bedroom".
Implemented safeguard against running same looped sound more
than once.
svn-id: r49725
2010-06-15 10:25:34 +00:00
Eugene Sandulenko
0b8f8d7a24
SAGA: Fix bug #2886151 .
...
Bug #2886151 : "ITE: Mouse stops responding at Boar Castle" fixed
by implementing a workaround. It is a script bug in original.
svn-id: r49724
2010-06-15 10:25:13 +00:00
Eugene Sandulenko
6d2c916c34
SAGA: Add debug output for sfLockUser()
...
svn-id: r49723
2010-06-15 10:24:55 +00:00
Eugene Sandulenko
7746321ed6
SAGA: Fix bug #1970191 .
...
Bug #1970191 : "IHNM: Psychic Profile problem". Still there is a
slight artefact. When the profile has 2 pages and is skipped,
there are two fade-ins in a row. It could be checked by analysing
event queue.
svn-id: r49698
2010-06-15 10:16:53 +00:00
Eugene Sandulenko
5d72a614ec
SAGA: Add more thread-related output.
...
svn-id: r49697
2010-06-15 10:16:32 +00:00
Eugene Sandulenko
723cb6c0f0
SAGA: Moved more code under ENABLE_IHNM
...
svn-id: r49696
2010-06-15 10:16:13 +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
Filippos Karapetis
0492bd6aa6
SAGA: Music code cleanup. The music driver is now placed inside the MusicPlayer class, instead of the SagaEngine class. Split the functionality that the music parser should handle from the functionality that the music driver should handle. Also, fixed a bug in MusicDriver::send() (the notes off signal was sent to unallocated channels, not allocated ones)
...
svn-id: r49607
2010-06-12 18:20:22 +00:00
Alejandro Marzini
e991cd8c53
- Revised abstract AudioCDManager.
...
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem.
- Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL.
svn-id: r49548
2010-06-09 20:09:57 +00:00
Max Horn
767edc91fa
OSYSTEM: Get rid of kFeatureAutoComputeDirtyRects
...
svn-id: r49388
2010-06-02 00:52:57 +00:00
Filippos Karapetis
512435893b
Started simplifying and removing a lot of unused code from the SAGA Mac resource loader, to be ultimately replaced by the common Mac resource loader
...
svn-id: r49082
2010-05-18 15:16:53 +00:00
Filippos Karapetis
6499ddff8e
Added back video skipping in SAGA2 with the escape key or left mouse button
...
svn-id: r49080
2010-05-18 14:57:02 +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
Filippos Karapetis
80acb21a56
Added automatic detection of the IHNM demo
...
svn-id: r49047
2010-05-16 10:36:21 +00:00
Filippos Karapetis
b57bab8e3b
Added automatic detection for the non-interactive ITE demos
...
svn-id: r49046
2010-05-16 10:23:44 +00:00
Max Horn
2149a2383d
Reduce indirect header dependencies further
...
svn-id: r48936
2010-05-04 12:00:16 +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
Max Horn
5568a8473b
Get rid of Engine::_gameDataDir.
...
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
c75ff0515e
SAGA: Avoid global constructor for pieceOrigins array
...
svn-id: r48842
2010-04-28 22:23:34 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Ori Avtalion
aee05cd21d
Remove extra semicolons
...
svn-id: r48457
2010-04-01 15:03:08 +00:00
Max Horn
ed6602502f
SAGA: Fix ScriptThread::operator=; some tweaking
...
svn-id: r48398
2010-03-24 23:19:27 +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
Andrew Kurushin
802ed6eb40
Fix bug #2963556 : SAGA: Memory leaks #2
...
isomap-malloc to Common::Array conversation
svn-id: r48232
2010-03-10 21:44:58 +00:00
Johannes Schickel
80fae481b0
Fix a valgrind warning.
...
It is *not* a good idea to pass a reference to a list entry to List::remove.
Since List::remove will remove *all* occurances of that list entry, it will
also invaldiate the reference, resulting in invalid memory reads after the
entry has been removed from the list, when List::remove will continue to
search the rest of the list for more occurances of the same entry.
svn-id: r48225
2010-03-10 20:33:38 +00:00
Andrew Kurushin
91e7d27468
Fix bug #2963556 : SAGA: Memory leaks
...
svn-id: r48224
2010-03-10 17:05:25 +00:00
Torbjörn Andersson
65585f6433
Silenced some harmless cppcheck warnings about unreachable code after a return.
...
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.
svn-id: r48218
2010-03-10 06:39:23 +00:00
Filippos Karapetis
3f2471418d
Fixed the music in some Mac versions of ITE and disabled some unused code for the original DOS demo of ITE
...
svn-id: r48139
2010-02-26 22:24:48 +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
Max Horn
21e1cc4cf8
Switch makeADPCMStream to DisposeAfterUse::Flag
...
svn-id: r47736
2010-01-31 02:11:41 +00:00
Johannes Schickel
a505d32eff
Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
...
svn-id: r47716
2010-01-30 15:26:54 +00:00
Johannes Schickel
ec3f58e626
- Mark makeRawDiskStream factory as deprecated.
...
- Introduce two new makeRawStream factories, one is using RawStreamBlockList instead of an RawDiskStreamAudioBlock array.
svn-id: r47713
2010-01-30 15:17:57 +00:00
Filippos Karapetis
8606982590
Moved the Shorten decoder inside the SAGA engine, as it's the only one using it (and it's still unfinished, too)
...
svn-id: r47592
2010-01-27 08:40:48 +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
Filippos Karapetis
18a18701f7
Disabled the unused resource loading code for the unsupported QT MIDI format, used in the Mac version of IHNM
...
svn-id: r47474
2010-01-23 13:46:43 +00:00
Torbjörn Andersson
1928a7ba38
Silenced some cppcheck warnings.
...
svn-id: r47427
2010-01-21 23:05:33 +00:00
Max Horn
7799dc3614
SAGA: Change Sound::playSoundBuffer to enable looping for all sound formats
...
svn-id: r47405
2010-01-20 12:43:59 +00:00
Max Horn
cebaa0b0d3
Started to get rid of Audio::FLAG_LOOP
...
svn-id: r47397
2010-01-19 23:50:33 +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
5ee6c79b5d
Convert more engines from Mixer::playRaw to Mixer::playInputStream
...
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn
d2dd5a569a
SAGA: Move from Mixer::playRaw to playInputStream; add FIXME regarding sounds not being looped
...
svn-id: r47376
2010-01-19 11:21:25 +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
0d995c5920
Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
...
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc .
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)
This commit does not touch "adlib" and "ADLIB" uses!
Also it does not update all the SCUMM detection entries, which still use "Adlib".
svn-id: r47279
2010-01-12 21:07:56 +00:00
Eugene Sandulenko
59d4f14f39
Fix bug #2929619 : "IHNM: Small problem detecting German version"
...
svn-id: r47255
2010-01-11 19:22:19 +00:00
Johannes Schickel
0447a7f9f8
Fix a memory leak.
...
svn-id: r47227
2010-01-10 15:23:35 +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
Max Horn
f720d99b0a
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
...
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
...
svn-id: r47180
2010-01-08 22:07:35 +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
84f3034406
- Move openStreamFile from AudioStream to SeekableAudioStream.
...
- Fix documentation of openStreamFile.
svn-id: r47080
2010-01-06 15:23:33 +00:00
Johannes Schickel
fb9017c51e
Adapt SAGA to use Mixer::playAudioStreamLooping instead of relying the depracted in AudioStream looping support.
...
svn-id: r47063
2010-01-06 00:00:50 +00:00
Eugene Sandulenko
aaf66f20ef
Implement FR #2827944 : "SAGA: Hide in-game GUI on thumbnails"
...
svn-id: r46879
2010-01-02 11:03:12 +00:00
Eugene Sandulenko
be1d586cd5
Removing now redundant comment. The fix was correct.
...
svn-id: r46868
2010-01-02 00:22:46 +00:00
Johannes Schickel
6385e77d85
Fix undefined operation in setNoPendingVerb (someone with knowledge of SAGA should review this, see the TODO comment). (Thanks to syke for reporting this)
...
svn-id: r46848
2010-01-01 20:37:02 +00:00
Filippos Karapetis
ed41d797ef
Wrapped some IHNM-specific code around appropriate ifdef's
...
svn-id: r46749
2009-12-30 15:24:16 +00:00
Andrew Kurushin
9511b474dc
fix resource refactor regression
...
svn-id: r46659
2009-12-27 20:56:10 +00:00
Eugene Sandulenko
49c41a0c6c
Fix detection for ITE Floppy Italian
...
svn-id: r46537
2009-12-24 21:36:57 +00:00
Eugene Sandulenko
963dc5f142
Add more information to Italian fan translations of ITE as mentioned in
...
bugreport #2871990 : "ITE: Italian FAN translation regression"
svn-id: r46520
2009-12-23 21:35:32 +00:00
Max Horn
c8873d8492
Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
...
svn-id: r46316
2009-12-09 18:12:51 +00:00
Johannes Schickel
4c6fdce020
Fix warning.
...
svn-id: r46260
2009-12-04 19:58:10 +00:00
Torbjörn Andersson
01e12310ae
Silenced GCC warnings.
...
svn-id: r46258
2009-12-04 19:00:40 +00:00
Andrew Kurushin
aa147a2f5a
refactor resource module:
...
- struct ResourceContext => class ResourceContext
- replace "*alloc","free" with array templates
- simplify createContexts routines
svn-id: r46254
2009-12-04 17:52:42 +00:00
Eugene Sandulenko
1259f8061a
Fill out doxygen comment about supported games
...
svn-id: r46234
2009-12-01 22:10:51 +00:00
Eugene Sandulenko
12828d3aaf
Cache resource file size to avoid excess file->size() calls.
...
svn-id: r46138
2009-11-25 20:43:49 +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
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
2bbf708dea
Introduced new type Common::DisposeAfterUse::Flag
...
svn-id: r45233
2009-10-18 19:41:59 +00:00
Filippos Karapetis
422b732dba
Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
...
svn-id: r45151
2009-10-16 07:42:23 +00:00
Max Horn
d0876b06ed
Remove some unused variables
...
svn-id: r44853
2009-10-09 22:21:45 +00:00
Max Horn
42120ed626
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
...
svn-id: r44793
2009-10-08 19:41:38 +00:00
Torbjörn Andersson
41adc39d2d
Fixed cppcheck warnings about mismatching allocation/deallocation.
...
svn-id: r44543
2009-10-02 18:38:52 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
Filippos Karapetis
b4f1960318
Reverted parts of revisions #44298 , #44299 and #44300 , to prevent warnings and issues in compilers which don't support NORETURN
...
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb
Fixed some more warnings about unreachable code
...
svn-id: r44300
2009-09-24 10:15:50 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Filippos Karapetis
51dc72d49c
Corrected the size of one of the Italian fan-translated versions of ITE (bug report #2845399 )
...
svn-id: r44141
2009-09-17 09:40:39 +00:00
Max Horn
1011508325
Slightly modified version of Patch #2838562 : Improve endian.h and stream.h
...
svn-id: r44027
2009-09-11 08:55:47 +00:00
Max Horn
58f06b394f
SAGA: Change Actor::fillPathArray to use a dynamic queue instead of an only-growing array -> should reduce memory usage significantly
...
svn-id: r43912
2009-09-02 19:33:08 +00:00
Norbert Lange
54ef7a892b
reverting changes from patch 43696 that shouldnt have been committed
...
svn-id: r43697
2009-08-24 13:08:21 +00:00
Norbert Lange
184aae3c8c
Enable alternative palettse for Amiga Monkey Island - Patch ID: 2819787
...
use tables for palette colors instead of code with constants
svn-id: r43696
2009-08-24 12:39:03 +00:00
Filippos Karapetis
c9402c5559
Applied agent-q's patch to the SAGA pathfinding code for all platforms - x and y should not ever be greater than 640 and 480 respectively, so it looks safe enough to be applied
...
svn-id: r43500
2009-08-18 06:43:06 +00:00
Filippos Karapetis
4a4ae33825
Put back the code for playing external digital music, used by the MIDI enhancement project, which was removed in rev. #43480
...
svn-id: r43485
2009-08-17 18:25:51 +00:00
Johannes Schickel
516dd5c9a4
Slight cleanup to makeLinearDiskStream interface.
...
svn-id: r43481
2009-08-17 13:49:56 +00:00
Filippos Karapetis
77689a05a2
- Removed the custom DigitalMusicInputStream used in SAGA for the digital music in ITE CD and replaced it with the common LinearDiskStream class
...
- Removed leftover code which plays standalone tracks (it's not used anywhere)
svn-id: r43480
2009-08-17 13:25:44 +00:00
Filippos Karapetis
a9eb98c218
Simplified the sound playing code by removing the boolean variables for signed, stereo, endian and sample bit information - now sound flags are used instead. Some cleanup.
...
svn-id: r43470
2009-08-17 11:49:07 +00:00
Filippos Karapetis
a5e4eed30e
Ignore speech and sound effect samples with unknown compression, instead of trying to play them as raw sound. Some cleanup
...
svn-id: r43467
2009-08-17 11:11:38 +00:00
Filippos Karapetis
3dfb1c3a96
Made sound effect playing code consistent for compressed and uncompressed sounds. MemoryReadStream is used again instead of SeekableSubReadStream, as there will be issues when multiple sound effects or voices are played simultaneously
...
svn-id: r43466
2009-08-17 11:06:27 +00:00
Filippos Karapetis
374dccc905
Cleanup
...
svn-id: r43460
2009-08-17 09:19:53 +00:00
Johannes Schickel
8ea2316c3b
Put some more IHNM / SAGA2 specific code into compile guards.
...
svn-id: r43326
2009-08-12 18:08:01 +00:00
Johannes Schickel
595501b60c
Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in SagaMetaEngine that the last valid save slot for SAGA is slot 95.
...
svn-id: r42845
2009-07-27 17:48:40 +00:00
Johannes Schickel
7e71865e91
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
...
svn-id: r42751
2009-07-25 12:59:46 +00:00
Torbjörn Andersson
c247e98827
Removed unused variable.
...
svn-id: r42697
2009-07-24 19:24:15 +00:00
Willem Jan Palenstijn
441ae56ea9
SAGA: Instead of trying to detect duplicate glyphs,
...
simply generate duplicate outline glyphs.
This should fix #2826697 .
svn-id: r42696
2009-07-24 18:58:15 +00:00
Willem Jan Palenstijn
d3d06626e4
Fix oversight in r42361 and also handle consecutive copied characters in SAGA.
...
svn-id: r42378
2009-07-11 09:45:25 +00:00
Willem Jan Palenstijn
ad67a714dd
Fix SAGA outline generation algorithm for characters
...
that are copies of earlier characters. (5 characters in IHNM.)
This fixes #1904624 .
svn-id: r42361
2009-07-11 00:47:32 +00:00
Nicola Mettifogo
36828287ad
* Moved the updated IFF code from Parallaction to common/
...
* Updated Parallaction and SAGA to use the new decoder infrastructure.
svn-id: r41465
2009-06-12 08:51:05 +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
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
Andrew Kurushin
52ccf2af94
SAGA: move Actor::_pathList into a Common::Array<Point>
...
svn-id: r40232
2009-05-01 15:32:15 +00:00
Andrew Kurushin
600a471122
SAGA: fix SAGA_DEBUG&ACTOR_DEBUG enabled compilation; move Actor::_debugPoints into a Common::Array<DebugPoint>
...
svn-id: r40227
2009-05-01 10:37:41 +00:00
Max Horn
a4cb413d70
SAGA: turned Actor::_pathNodeList into a Common::Array<PathNode>; likewise for Actor::_newPathNodeList which also turned from a member var into a function local var
...
svn-id: r40180
2009-04-28 12:33:59 +00:00
Max Horn
7cfa3bb6d9
SAGA: Moved some code from actor.h to actor.cpp; replaced Actor::_pathDirectionList and related members by a Common::Array<PathDirectionData> inside Actor::fillPathArray()
...
svn-id: r40179
2009-04-28 12:33:38 +00:00
Max Horn
41bd7cd94b
SAGA: changed _threadList back to a list of ScriptThread objs, instead of ptrs to instances.
...
svn-id: r39944
2009-04-11 21:38:41 +00:00
Max Horn
82f862c6b2
SAGA: Simplified Scene::skipScene, changed loadScene to take a LoadSceneParams ref instead of a ptr
...
svn-id: r39943
2009-04-11 21:38:14 +00:00
Torbjörn Andersson
a784e6ab98
When dragging the save/load dialog's scrollbar handle past the top of the
...
scrollbar, stay at the top. Don't jump to the bottom.
svn-id: r39939
2009-04-11 20:16:37 +00:00
Torbjörn Andersson
91b724451b
Committed my patch for bug #2748110 ("IHNM: Fade glitch when Benny falls
...
asleep"), after discussing it with [md5]. It may not be exactly like the
original, but it looks a lot closer now.
svn-id: r39937
2009-04-11 15:38:13 +00:00
Filippos Karapetis
b3b8624869
Plugged another memory leak introduced with rev #39934
...
svn-id: r39936
2009-04-11 14:44:03 +00:00
Filippos Karapetis
bb012ee082
Plugged memory leak introduced with rev #39934
...
svn-id: r39935
2009-04-11 12:55:22 +00:00
Filippos Karapetis
448a98b885
Changed ScriptThreadList to hold a list of pointers, not a list of instances. This avoids the whole &* mess, as well as the strange references to the list head
...
svn-id: r39934
2009-04-11 12:46:00 +00:00
Filippos Karapetis
65393be446
Removed unused (and wrong) code for IHNM
...
svn-id: r39931
2009-04-11 12:08:02 +00:00
Filippos Karapetis
7287457672
Got rid of SortedList
...
svn-id: r39928
2009-04-11 09:54:55 +00:00
Willem Jan Palenstijn
c1a517e383
Fix compilation
...
svn-id: r39927
2009-04-11 09:43:42 +00:00
Filippos Karapetis
cf052e5a96
Fixed compilation (hopefully)
...
svn-id: r39926
2009-04-11 09:31:54 +00:00
Filippos Karapetis
02ca56eec8
Removed all but one of the functions of the SortedList, apart from the custom insert() operation. It's only used in one place now (in _drawOrderList)
...
svn-id: r39925
2009-04-11 09:23:40 +00:00
Filippos Karapetis
271f8b58b5
Removed move SortedList methods
...
svn-id: r39924
2009-04-11 09:04:50 +00:00
Max Horn
64fc4253e8
SAGA: Fix yet another mistake in the revised dirty rect code *sigh*
...
svn-id: r39923
2009-04-11 00:30:11 +00:00
Max Horn
1c5110e725
SAGA: Got rid of some more SortedList methods
...
svn-id: r39922
2009-04-11 00:29:52 +00:00
Max Horn
7412b0f8e8
SAGA: Stop needlessly using operator*() and operator->() (many of the resulting &* uses can be removed if references are used instead of pointers everywhere, which would be a good idea anyway)
...
svn-id: r39920
2009-04-11 00:29:12 +00:00
Max Horn
46ddb35d9f
SAGA: Removed some dead/obsolete code
...
svn-id: r39919
2009-04-11 00:28:49 +00:00
Filippos Karapetis
202f0fc49d
Added a new console command, "wake_up_threads", which can wake up threads that are block waiting
...
svn-id: r39915
2009-04-10 22:33:29 +00:00
Filippos Karapetis
2d54d2717e
Removed obsolete TODO
...
svn-id: r39914
2009-04-10 21:47:10 +00:00
Max Horn
c473fa849d
SAGA: Make the dirty rect handling here match the one in the GUI code (some more cases of mutually contained rects are deteceted here now, too).
...
svn-id: r39910
2009-04-09 17:07:53 +00:00
Torbjörn Andersson
d3d641e487
Sort the list of savegames. (I suppose this fix, or a better one, should go
...
into 0.13.1 as well.)
svn-id: r39906
2009-04-09 15:59:22 +00:00
Filippos Karapetis
c65013faf2
Fixed a regression of commit #35473 . Fixes bug #2703595 - "ITE: Crash when clicking on items inside the hangar"
...
svn-id: r39664
2009-03-24 13:33:47 +00:00
Filippos Karapetis
95d92b0d24
Make sure that the currently buggy dirty rectangle handling code is not used. Also, make sure that the resource data pointer is initialized to zero
...
svn-id: r39655
2009-03-24 08:33:24 +00:00
Torbjörn Andersson
74a82ef427
Finally fixed the Valgrind warning that was confusing me so yesterday.
...
svn-id: r39651
2009-03-24 05:35:48 +00:00
Torbjörn Andersson
1a0dea396d
Made the music and sound file names part of the class, instead of local
...
variables. This fixes another Valgrind warning when SndRes::load() tries to
access the file names. (I could also have made the variables static, but I've
never been very fond of static variables.)
svn-id: r39641
2009-03-23 20:25:25 +00:00
Torbjörn Andersson
b3b3e9da59
Initialise _fullRefresh. Fixes a Valgrind warning.
...
svn-id: r39638
2009-03-23 20:07:17 +00:00
Max Horn
5181546c63
Rewrote Common::List iterator code to ensure const correctness is preserved.
...
We tried to implement the list iterators in a clever way, to reduce code
duplication. But this is essentially impossible to do properly, sadly --
this is one of the places where the ugly drawbacks of C++ really show.
As a consequence, our implementation had a bug which allowed one to
convert any const_iterator to an iterator, thus allowing modifying
elements of const lists.
This rewrite reintroduces code duplication but at least ensures that no
const list is written to accidentally.
Also fix some places which incorrectly used iterator instead of const_iterator
or (in the kyra code) accidentally wrote into a const list.
svn-id: r39279
2009-03-09 22:26:02 +00:00
Max Horn
e080a59337
Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as some other tweaks
...
svn-id: r39255
2009-03-09 03:45:23 +00:00
Filippos Karapetis
0c51a5f393
Added game object data files for dino and FTA2
...
svn-id: r39237
2009-03-08 16:05:49 +00:00
Filippos Karapetis
9d7111006d
- Reworked the different file types a bit
...
- Some initial work on Dinotopia's intro sequence
svn-id: r39234
2009-03-08 15:39:19 +00:00
Travis Howell
cc89a46a0e
Fix compile of SAGA2 game engine.
...
svn-id: r39208
2009-03-07 22:11:38 +00:00
Filippos Karapetis
e7defa3820
Fixed bug #2665117 - "ITE: Italian Floppy version wrong size"
...
svn-id: r39205
2009-03-07 20:54:34 +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
Willem Jan Palenstijn
7a88744b74
Patch #2671477 : Fix wrong usage of strncat
...
svn-id: r39184
2009-03-07 13:40:00 +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
Filippos Karapetis
7886aedebb
Fixed a nasty regression from the script system rewrite (commit #35670 ), which will cause crashes under certain conditions, and probably makes SAGA games non-completable.
...
When a script thread is waiting for another thread, the current instruction offset should not be modified. The thread processing function would incorrectly continue in some special cases, and would incorrectly alter the current instruction offset. This becomes apparent in some special cases only, which made it hard to spot - plus, SAGA games have not been tested for 0.13.0, so there weren't any reports for this.
This change SHOULD go to the 0.13.0 branch, but we've already tagged...
svn-id: r38581
2009-02-20 10:49:43 +00:00
Filippos Karapetis
e504c0d8ab
Removed unused code
...
svn-id: r36210
2009-02-03 17:02:57 +00:00
Max Horn
28cf213605
Moved AdvancedDetector from common/ to engines/
...
svn-id: r36132
2009-01-29 22:13:01 +00:00
Filippos Karapetis
fa71814c07
Proper fix for accented characters in the Italian version of ITE
...
svn-id: r36103
2009-01-27 17:39:11 +00:00
Filippos Karapetis
1d04e168ae
Fixed bug #2538838 - "Wrong accented char. in italian fan version [Regression]"
...
svn-id: r36101
2009-01-27 17:27:51 +00:00
Filippos Karapetis
7273d02528
Implemented getDebugger()
...
svn-id: r35967
2009-01-20 23:40:35 +00:00
Max Horn
6b3d5db09f
Disabled use of OSystem::kFeatureAutoComputeDirtyRects in SAGA for now
...
svn-id: r35915
2009-01-18 20:42:33 +00:00
Filippos Karapetis
56f75b4c41
Fixed bug #2057987 - "IHNM: Music stops in Ellen's chapter"
...
svn-id: r35884
2009-01-17 21:45:53 +00:00
Filippos Karapetis
ba4b872a20
Silenced MSVC warning
...
svn-id: r35883
2009-01-17 21:17:58 +00:00
Filippos Karapetis
e399865ee8
IHNM save games no longer contain ITE-related variables
...
svn-id: r35828
2009-01-11 14:44:29 +00:00
Filippos Karapetis
0b4dd7c459
Committed a modified version of wjp's patch for the video player:
...
- Split the video player from the video decoders. It's now possible to have one video player for multiple decoders
- Added the palette weight calculation from the BS1 engine into VideoPlayer::setPalette. It's now possible to find the values of the white and black colors via getWhite() and getBlack() (useful for subtitle overlays)
- Adapted FTA2's movie playing code to the new changes to video player
- Fixed a slight bug in the DXA decoder (_videoinfo.startTime was not initialized)
svn-id: r35816
2009-01-11 03:34:50 +00:00
Filippos Karapetis
2772a7aaf1
Further merging of the SMK and DXA players (the FLIC player is not done yet):
...
- Added a new class, VideoPlayer(), from which both the SMK and the DXA player inherit. This class provides generic functions and public methods for the inherited video classes. Default implementations have been made for these public methods, and the virtual ones can be overriden in inherited classes
- There is now a default implementation of the function that sets the video palette
- A basic video player for inherited classes has been added with method playVideo(). This is able to play a fullscreen non-interactive video, which can be skipped with events set by the caller. Postprocessing methods, which draw upon each frame (e.g. subtitles) can be done by implementing performPostProcessing()
- The FTA2 movie player now uses the new playVideo() method
- The new video player code is compatible with the old one (i.e. no changes to the existing engine code are necessary), but it's now possible to reduce engine code for video playing considerably
svn-id: r35772
2009-01-07 21:19:00 +00:00
Filippos Karapetis
cfec23cf0d
Use skip instead of seek
...
svn-id: r35763
2009-01-06 23:33:01 +00:00
Filippos Karapetis
e6aaa5324a
Sound in the old Mac Guild version of ITE is correct again
...
svn-id: r35762
2009-01-06 23:30:23 +00:00
Filippos Karapetis
c5c4ab97c9
Cleanup, and follow code formatting convention (indentation) for switch statements
...
svn-id: r35754
2009-01-06 15:47:58 +00:00
Filippos Karapetis
eeaaabc7d4
The Mac version and Mac demo of ITE no longer crash on exit
...
svn-id: r35750
2009-01-06 10:34:51 +00:00
Filippos Karapetis
e2e536ae18
Fixed regression: the ITE Mac version works correctly again
...
svn-id: r35749
2009-01-06 10:33:40 +00:00
Filippos Karapetis
80832ffb8f
Got rid of explicit game sound info
...
svn-id: r35727
2009-01-04 15:44:33 +00:00
Filippos Karapetis
203358bcb7
Improved handling of sound resources
...
svn-id: r35724
2009-01-04 14:38:03 +00:00
Filippos Karapetis
3ee62c226f
Typo
...
svn-id: r35705
2009-01-03 16:03:50 +00:00
Filippos Karapetis
e7cbd2e14f
Simplified the Smacker video playing code for FTA2
...
svn-id: r35704
2009-01-03 16:01:58 +00:00
Filippos Karapetis
40d6a3c1e5
Split the script module into two parts, for SAGA1 and SAGA2 games
...
svn-id: r35689
2009-01-02 23:16:08 +00:00
Filippos Karapetis
90d762c261
Wrapped more engine-specific code around appropriate ifdefs
...
svn-id: r35679
2009-01-02 19:10:51 +00:00
Filippos Karapetis
7c629b5f6a
Wrapped SAGA 2 game entries around appropriate defines
...
svn-id: r35678
2009-01-02 18:44:15 +00:00
Eugene Sandulenko
007c39a84d
Let compiled subengines be visible in About dialog.
...
svn-id: r35677
2009-01-02 18:20:15 +00:00
Filippos Karapetis
d5b6996c45
- Split the IHNM script functions into a different file
...
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS)
svn-id: r35672
2009-01-02 16:52:38 +00:00
Filippos Karapetis
32f73fd34c
Rewrote the SAGA script system to use an opcode table, like in other engines
...
svn-id: r35670
2009-01-02 13:59:34 +00:00
Filippos Karapetis
41dce61a30
Simplified sound resource loading
...
svn-id: r35649
2009-01-01 16:02:43 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
220af87112
Proper fix for non-interactive ITE demos (the previous one was affecting sprites for other games)
...
svn-id: r35645
2008-12-31 22:11:20 +00:00
Filippos Karapetis
94548ed27c
Several fixes and cleanup for sound resource loading. Sound information for sound types that are detected automatically is read from the files themselves
...
svn-id: r35644
2008-12-31 22:10:09 +00:00
Filippos Karapetis
cae6bdac08
Preliminary Shorten audio support for SAGA 2 games. It's still very wrong and needs further work, but it's a start
...
svn-id: r35626
2008-12-31 11:46:21 +00:00
Filippos Karapetis
14434659bc
- Removed game sound information for sound types that it can be determined automatically. The game sound information left is now used as override info for certain sound types (e.g. PCM)
...
- Added stubs for Shorten audio type, used in SAGA2 games
svn-id: r35616
2008-12-29 18:35:18 +00:00
Filippos Karapetis
9a5f45a40c
- IHNM Mac loads correctly again
...
- Removed isBigEndian from GameSoundInfo
- Removed GF_BIG_ENDIAN_DATA
- Stopped loading the options panel for non-interactive ITE demos (it doesn't exist)
- Fixed crash when exiting from non-interactive ITE demos
svn-id: r35615
2008-12-29 17:30:29 +00:00
Filippos Karapetis
3e06872001
Silenced MSVC warning
...
svn-id: r35610
2008-12-29 15:04:46 +00:00
Johannes Schickel
a621158cee
Added const keyword to static data.
...
svn-id: r35563
2008-12-26 14:38:45 +00:00
Filippos Karapetis
dec4f1d084
The verb<->textId assignment is needed only for ITE
...
svn-id: r35562
2008-12-26 13:50:12 +00:00
Max Horn
6837416556
Made Engine::_timer protected
...
svn-id: r35543
2008-12-25 20:53:59 +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
Max Horn
f4fc0a9176
Fixed warning
...
svn-id: r35541
2008-12-25 20:36:58 +00:00
Filippos Karapetis
4d249cde76
Slight cleanup
...
svn-id: r35540
2008-12-25 18:10:21 +00:00
Filippos Karapetis
dd7ea11ac4
SAGA2 HRS resources should be loaded correctly now
...
svn-id: r35539
2008-12-25 15:19:33 +00:00
Filippos Karapetis
52f464534c
Cleanup
...
svn-id: r35538
2008-12-25 15:16:53 +00:00
Filippos Karapetis
a9a91de3cd
Oops
...
svn-id: r35537
2008-12-25 12:11:38 +00:00
Filippos Karapetis
c8ca4d59bc
- Implemented the SAGA2 resource loader
...
- Some cleanup
svn-id: r35536
2008-12-25 12:09:24 +00:00
Filippos Karapetis
c2c439b53d
Slight cleanup
...
svn-id: r35523
2008-12-24 09:59:18 +00:00
Johannes Schickel
a150aea638
Fixed warning.
...
svn-id: r35511
2008-12-23 22:01:47 +00:00
Filippos Karapetis
e27c463595
Some initial code for HRS resource loading
...
svn-id: r35497
2008-12-23 16:29:26 +00:00