Commit Graph

916 Commits

Author SHA1 Message Date
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
Filippos Karapetis
350943f291 Enumerated the different actor directions and fixed spelling
svn-id: r35496
2008-12-23 15:26:55 +00:00
Filippos Karapetis
4d7a43734e Fixed bug #1970191 - "IHNM: Psychic Profile problem"
svn-id: r35495
2008-12-23 11:18:01 +00:00
Filippos Karapetis
9a57f42399 logicalWidth -> width
logicalHeight -> height

svn-id: r35488
2008-12-22 14:36:58 +00:00
Torbjörn Andersson
3e0b81a99e Fixed GCC warning.
svn-id: r35487
2008-12-22 14:34:32 +00:00
Filippos Karapetis
38f7fa6f4a Added game ID checks for the ITE puzzle in some places that I've missed
svn-id: r35486
2008-12-22 14:30:00 +00:00
Filippos Karapetis
437384a838 - Split the SAGA resource manager in 3 different ones, depending on the resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub
- Added detection for the voice file of FTA2

svn-id: r35484
2008-12-22 14:13:15 +00:00
Travis Howell
1f669687a3 Correct comment.
svn-id: r35483
2008-12-22 11:49:49 +00:00
Filippos Karapetis
c3bbc4b279 Added Smacker support for the introduction and ending videos of FTA2
svn-id: r35482
2008-12-22 11:26:29 +00:00
Filippos Karapetis
f3db2bf1c3 Added some more stubs for FTA2
svn-id: r35475
2008-12-21 23:43:12 +00:00
Filippos Karapetis
2257db88d3 - Added some stubs for the SAGA2 games dino and fta2
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM)
- Removed getDisplayWidth() and getDisplayHeight()

svn-id: r35473
2008-12-21 22:52:44 +00:00
Filippos Karapetis
d0f4f97ea9 Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
svn-id: r35467
2008-12-21 15:59:05 +00:00
Filippos Karapetis
3c01f4f0e1 Partial fix for bug #2453189 - "ITE: mass adding results in incorrect targets" (the Italian multiplatform fan translated version is still missing)
svn-id: r35449
2008-12-20 12:05:35 +00:00
Filippos Karapetis
d28478e545 Fixed bug #2453183 - "IHNM: mass adding results in incorrect targets"
svn-id: r35448
2008-12-20 10:59:29 +00:00
Filippos Karapetis
6baa803dff Removed defaults which are set in base/commandLine.cpp
svn-id: r35444
2008-12-19 19:12:29 +00:00
Filippos Karapetis
0410d6dfae Removed the hasKey() hackery of my previous commit and used ConfMan.registerDefault() instead. Changed sound_volume back to sfx_volume, which got changed with the GSoC merge and was the actual cause that the sound effects were off by default
svn-id: r35437
2008-12-19 12:03:22 +00:00
Filippos Karapetis
2911aa04c1 Fixed bug #2424530 - "IHNM: SFX are no longer played", by assigning correct default values for missing config manager settings
svn-id: r35436
2008-12-19 10:54:05 +00:00
Filippos Karapetis
c6947285d2 Fixed a regression of commit #34458. Sound data for compressed sounds was read incorrectly. Fixes bugs #2422371 - "ITE: Talk animation takes longer than speaking" and #2111496 - "IHNM: Speech is garbled"
svn-id: r35320
2008-12-12 22:56:56 +00:00
Filippos Karapetis
dcca0c9f66 Fixed a regression in my last commit where some sprites were not clipped correctly
svn-id: r35318
2008-12-12 20:10:00 +00:00
Filippos Karapetis
cfa939d151 - Stop passing the scene clip rectangle around for no reason
- More changes for dirty rectangle handling
- Stop adding dirty rectangles that cover the whole screen for no reason
- Dirty rectangle handling is still very buggy, so it's still disabled

svn-id: r35314
2008-12-12 14:23:02 +00:00
Torbjörn Andersson
e26f1391fa Fixed detection of voice files.
svn-id: r35305
2008-12-11 18:09:45 +00:00
Filippos Karapetis
39871b84de Some more dirty rectangle fixes, only 2 known glitches are left
svn-id: r35296
2008-12-10 19:39:26 +00:00
Filippos Karapetis
5f4518a2ad Some more dirty rectangle fixes (some glitches still remain)
svn-id: r35294
2008-12-09 21:09:45 +00:00
Filippos Karapetis
e27c494371 Some more dirty rectangle changes (still incomplete)
svn-id: r35288
2008-12-08 22:07:14 +00:00
Filippos Karapetis
4c62b50921 More dirty rectangle related changes
svn-id: r35285
2008-12-08 17:48:39 +00:00
Filippos Karapetis
0ffb1081fa Set full screen refresh when an animation frame or the psychic profile is shown
svn-id: r35283
2008-12-07 19:15:57 +00:00
Filippos Karapetis
78fd335a42 More dirty rectangle related changes (dirty rectangle handling is still broken)
svn-id: r35281
2008-12-07 18:49:35 +00:00
Filippos Karapetis
15dad27d79 Fixed typo
svn-id: r35279
2008-12-07 17:17:37 +00:00
Filippos Karapetis
5d1e3fd03e Some dirty rectangle related code
svn-id: r35267
2008-12-07 00:27:39 +00:00
Filippos Karapetis
c69cacfe2d Disable unused code
svn-id: r35266
2008-12-07 00:19:50 +00:00
Filippos Karapetis
4946e6584e Disabled more debug code
svn-id: r35265
2008-12-07 00:13:55 +00:00
Filippos Karapetis
065694dbb1 - Prevented direct reference to the back buffer in many cases (apart from a few, where it's modified directly)
- Added skeleton code for dirty rectangle handling (still unfinished and non-working)
- Added wrapper functions to access the back buffer, which add the appropriate dirty rectangles automatically

svn-id: r35264
2008-12-06 18:23:34 +00:00
Filippos Karapetis
5f2cd3c4a7 Cleanup
svn-id: r35263
2008-12-06 14:44:09 +00:00
Filippos Karapetis
d148d481f9 Fixed compilation when SAGA_DEBUG is defined
svn-id: r35262
2008-12-06 14:38:04 +00:00
Filippos Karapetis
668eaea68c Also remove explicit surface passing to IsoMap::draw()
svn-id: r35261
2008-12-06 14:37:09 +00:00
Filippos Karapetis
9c04b0c229 All the screen drawing functions draw to the back buffer, so there is no point in passing it everywhere
svn-id: r35260
2008-12-06 14:24:40 +00:00
Filippos Karapetis
f3a60a8c96 Cleanup
svn-id: r35259
2008-12-06 13:35:27 +00:00
Filippos Karapetis
a4923c5ba4 Removed unused variable
svn-id: r35251
2008-12-05 22:01:22 +00:00
Filippos Karapetis
72ba213b36 Removed more unneeded test code
svn-id: r35250
2008-12-05 18:56:52 +00:00
Filippos Karapetis
beb18533c3 Cleanup
svn-id: r35246
2008-12-04 21:25:44 +00:00
Filippos Karapetis
c2d095b426 Do not redraw the whole scene if an overlay is drawn above it
svn-id: r35245
2008-12-04 21:09:24 +00:00
Filippos Karapetis
12f4c3b9b9 Removed more test code and performed some cleanup
svn-id: r35241
2008-12-04 19:12:58 +00:00
Filippos Karapetis
b4cc40166e Disabled all the test functions in SAGA. They can be enabled again by defining SAGA_DEBUG to 1 in saga.h. This cuts down on the engine size a bit, for devices with little memory (e.g. the DS)
svn-id: r35238
2008-12-04 18:38:02 +00:00
Max Horn
c290bb977c Fix compiler warning
svn-id: r35215
2008-12-03 11:05:07 +00:00
Robin Watts
8f3b2e9b4d Remove warnings from NDS build.
svn-id: r35172
2008-11-29 18:01:16 +00:00
Filippos Karapetis
78eeb313fe Corrected wrong extended characters provided in the translated hardcoded strings for ITE. Fixes bug #2045157 - "ITE: wrong accented characters in italian fan version"
svn-id: r35158
2008-11-23 15:03:54 +00:00
Filippos Karapetis
df694b3de1 Cleanup
svn-id: r35114
2008-11-18 17:37:01 +00:00
Johannes Schickel
2ef8a32a01 Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
2008-11-16 20:20:31 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Filippos Karapetis
4294185c59 Some corrections, based on observations from bug report #2284298 - "SAGA: Compiler warnings; possibly an engine bug"
svn-id: r35058
2008-11-14 17:51:48 +00:00
Torbjörn Andersson
591d01b77f Reverted change I accidentally made to the SAGA engine when committing the SCUMM
charset changes. It may be a correct change, but it's not yet ready.

svn-id: r35057
2008-11-14 14:12:18 +00:00
Torbjörn Andersson
5e5eebf24f Committed my own patch #2278665 ("SCUMM: Font data in old SCUMM games") to get
rid of a few kilobytes of hard-coded font data. (The font data is still there,
but now we only store how the French, German, Italian and Spanish fonts differ
from the English one.)

svn-id: r35056
2008-11-14 14:03:08 +00:00
Sven Hesse
2ec6e678be Fixing compilation
svn-id: r35055
2008-11-14 13:26:23 +00:00
Filippos Karapetis
66e86283cb Cleanup and simplification of the resource loading code
svn-id: r35054
2008-11-14 12:19:10 +00:00
Filippos Karapetis
0f38e67f57 Fix for bug #2277597 - "ITE: Classic Mac alternate md5sums / Voices not detected‏"
svn-id: r35051
2008-11-13 23:21:38 +00:00
Filippos Karapetis
6ccf57d789 Fixed crash when returning to launcher from the GMM
svn-id: r35050
2008-11-13 23:19:25 +00:00
Filippos Karapetis
8e3485f158 Added better checks for the current music status in pauseEngineIntern()
svn-id: r35035
2008-11-13 09:19:42 +00:00
Torbjörn Andersson
c29dfd1f17 Fixed warning. (GCC doesn't like the variable 'isPaused' because there already is
an isPaused() function.)

svn-id: r35009
2008-11-11 20:25:44 +00:00
Filippos Karapetis
113a83c0da Implemented pauseEngineIntern() for the SAGA engine
svn-id: r35007
2008-11-11 17:34:52 +00:00
Filippos Karapetis
a859e2c1c9 Cleanup
svn-id: r34988
2008-11-10 18:51:51 +00:00
Filippos Karapetis
3ccfce260f SAGA save games now contain thumbnails and creation date/time (visible from the GMM save/load screens)
svn-id: r34986
2008-11-10 14:11:30 +00:00
Filippos Karapetis
4e7f7064a3 Limit places where saving from the GMM is permitted
svn-id: r34984
2008-11-10 11:43:02 +00:00
Filippos Karapetis
f5729a4a8b - The GMM save dialog is now working for all engines which support the appropriate features
- Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots
- Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started)

svn-id: r34963
2008-11-09 16:13:34 +00:00
Filippos Karapetis
57e57c49ce Saving a game from GMM is now working for the SAGA engine, though the description is not set correctly yet
svn-id: r34932
2008-11-07 19:43:01 +00:00
Max Horn
40136f2590 Switched various Engine APIs to use Common::Error
svn-id: r34916
2008-11-06 17:05:54 +00:00
Max Horn
fe2935ad4b Got rid of the unused 'filename' attribute in SaveStateDescriptor
svn-id: r34905
2008-11-05 15:41:12 +00:00
Max Horn
61aadb378d Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
svn-id: r34896
2008-11-04 16:11:40 +00:00
Max Horn
55c10e0ec6 Patch #2122869: ALL: Common load dialog
svn-id: r34883
2008-11-03 18:32:16 +00:00
Filippos Karapetis
26642748f9 Removed FIXME and reverted commit #34855, as it's now possible to add a subfolder to a non-existing folder without crashes with the change in commit #34857
svn-id: r34858
2008-10-27 11:04:36 +00:00
Filippos Karapetis
c03f0219ca Using getChild() with getChild() throws an assertion (a regression of the latest FS node changes). Commenting out this line with a FIXME so that SAGA games can work once again under Windows
svn-id: r34855
2008-10-26 18:40:59 +00:00
Filippos Karapetis
b7a219ebc6 Renamed engine feature kSupportsDirectLoad to kSupportsLoadingDuringStartup, as discussed in patch #2122869
svn-id: r34854
2008-10-26 16:42:08 +00:00
Max Horn
6a2f3dc0b9 Added new type Engine::Feature; pushed down some #include dependencies
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
3248906156 Engine class changed:
- Moved initCommonGFX() && GUIErrorMessage() out of class Engine
- got rid of the _autosavePeriod member (this prevented users from
  changing the autosave period during runtime)
- Got rid of an evil 'using GUI::Dialog' statement
- Clarified some Doxygen comments

svn-id: r34720
2008-10-02 17:48:01 +00:00
Filippos Karapetis
d4cb443af7 Fix crash when starting ITE, a regression from commit #34705
svn-id: r34712
2008-09-30 16:55:10 +00:00
Filippos Karapetis
45284cfad9 Fixed crash when starting IHNM, a regression from commit #34693
svn-id: r34705
2008-09-30 13:19:14 +00:00
Max Horn
6aa12974bd SAGA: Some code cleanup
svn-id: r34703
2008-09-30 12:58:27 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Max Horn
7c0b2cfd27 Added multiple new open() methods to Common::File, which make it possible to use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName()
svn-id: r34696
2008-09-30 09:12:02 +00:00
Max Horn
d4a76c026f SAGA: Forgot to commit saga.h
svn-id: r34695
2008-09-30 09:11:25 +00:00
Max Horn
82f7b3e6e4 SAGA: Removed patchesCount from SAGAGameDescription
svn-id: r34693
2008-09-30 09:08:17 +00:00
Max Horn
66c481c70a Order alphabetically
svn-id: r34692
2008-09-30 09:07:03 +00:00
Eugene Sandulenko
84379f1124 Fix bugs #1981081: "ITE: No blinking disk icon" and #1971729: "IHNM: No Animation of Disk Icon"
svn-id: r34645
2008-09-24 22:44:01 +00:00
Filippos Karapetis
e377ed856d Readded missing special case for the storm animation in ITE. Fixes bug #2125675 - "ITE: Game locks up in storm clouds scene"
svn-id: r34639
2008-09-24 07:26:45 +00:00
Filippos Karapetis
621847b2e2 Proper check for eos(), after the latest changes to OSystem
svn-id: r34554
2008-09-15 09:17:18 +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
Johannes Schickel
0a35842954 Committed my patch #2105593 "Launcher/MetaEngine: Finnished removeSaveState".
svn-id: r34495
2008-09-11 19:47:45 +00:00
Filippos Karapetis
726e7e7ef9 Committed patch #2100962 - "Saga engine reduced memory usage"
svn-id: r34458
2008-09-09 07:05:47 +00:00
Filippos Karapetis
1c687f98e7 Reduced calls to File::exists()
svn-id: r34443
2008-09-08 10:36:53 +00:00
Filippos Karapetis
4be8764428 Free the current voice lookup table a bit earlier in loadGlobalResources()
svn-id: r34442
2008-09-08 08:26:54 +00:00
Filippos Karapetis
ea5ad543d9 Cleanup
svn-id: r34440
2008-09-08 08:07:06 +00:00
Max Horn
2bc093828f Replaced Engine::_gameDataPath (a String) by Engine::_gameDataDir (an FSNode); adapted code to that (by using getChild() to get subdirs, not string concatenation
svn-id: r34434
2008-09-07 22:10:58 +00:00
Filippos Karapetis
6d4900ad06 Hopefully fixed the chaos with the SAGA volume values. This also fixes the broken volume introduced with the introduction of the RTL code in the engine
svn-id: r34349
2008-09-05 13:02:03 +00:00
Max Horn
d3642080de Moved check for shouldRTL() from engines to scummvm_main
svn-id: r34310
2008-09-03 16:56:40 +00:00
Max Horn
2a06141644 Merging more of the GSoC 2008 RTL branch: SAGA
svn-id: r34252
2008-09-01 20:19:28 +00:00