753 Commits

Author SHA1 Message Date
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