aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
AgeCommit message (Collapse)Author
2009-12-30Rename Common::Stream::readLine_NEW to readLineMax Horn
svn-id: r46779
2009-12-30Corrected an old comment.Torbjörn Andersson
svn-id: r46768
2009-12-09Fixed some simple cppcheck warnings.Torbjörn Andersson
svn-id: r46303
2009-11-24Added Doxygen comments for the various engine namespaces (currently mostly ↵Max Horn
without details; help filling these out is welcome) svn-id: r46128
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-20SWORD2: Turned static vars in Logic::fnISpeak into member vars of class LogicMax Horn
svn-id: r45284
2009-10-20SWORD2: Resolve FIXME about weird static var 'k' in Router::smoothCheckMax Horn
svn-id: r45282
2009-10-20SWORD2: Resolve FIXME about static var 'left' in Router::slidyWalkAnimatorMax Horn
svn-id: r45281
2009-10-18Introduced new type Common::DisposeAfterUse::FlagMax Horn
svn-id: r45233
2009-10-16Added a new convenience method to the video player, which adds the event of ↵Filippos Karapetis
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-14SWORD2: Switch from loadWAVFromStream to makeWAVStream.Max Horn
This also fixes a memory leak (the MemoryReadStream wasn't being freed). svn-id: r45099
2009-10-01Fix free/delete/delete[] mismatches. Patch by salty-horseWillem Jan Palenstijn
svn-id: r44512
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-09-24Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings ↵Filippos Karapetis
and issues in compilers which don't support NORETURN svn-id: r44314
2009-09-24Fixed some more warnings about unreachable codeFilippos Karapetis
svn-id: r44300
2009-09-23Got rid of Common::File::addDefaultDirectory, instead implemented the ↵Johannes Schickel
solution proposed in "Case agnostic handling for directories (and files)" on -devel. svn-id: r44266
2009-09-18SWORD2: Don't show a pop-up if the 'eye' movie is missing - it was omitted ↵Joost Peters
in later re-releases. svn-id: r44187
2009-09-01Coding best practice: Always use enums instead of #defines to define integer ↵Max Horn
constants (for many good reasons) svn-id: r43881
2009-08-14remove double semi-colon -- hopefully this kicks the buildbot back into ↵Joost Peters
action =) svn-id: r43388
2009-07-29SWORD1 & SWORD2: Replaced ioFailed by err+eosMax Horn
svn-id: r42912
2009-07-28Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for smallTorbjörn Andersson
cutscenes that Broken Sword 1 had. And a memory leak. This should fix both. svn-id: r42861
2009-07-25Move the event recorder to its own class (EventRecoder inside ↵Johannes Schickel
common/EventRecorder.[h/cpp]). svn-id: r42751
2009-07-01- Added GCC_PRINTF attribute to several funcs where it makes senseMax Horn
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings - removed duplicate prototypes for some funcs - fixed some "increases required alignment of target type" warnings svn-id: r42009
2009-06-06Add GUI options support to Sky, Queen and Sword1&2 engines (which do not use AD)Eugene Sandulenko
svn-id: r41274
2009-05-31The error() and warning() functions add ! and newline automatically. (I didn'tTorbjörn Andersson
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-05-27sword2: base psx demo detection on screens.clu, and let the user decide ↵Fabio Battaglia
between full and demo version at the time of adding the game svn-id: r40937
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-21Renamed the DXA, SMK and FLIC video decoders to reflect the fact that ↵Filippos Karapetis
they're decoders, not players svn-id: r40759
2009-05-20- Reverted commit #40730, as it introduced rounding errorsFilippos Karapetis
- Properly fixed the FLIC player - The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method svn-id: r40736
2009-05-20Removed the rest of the hard-coded cutscene information. It was only needed toTorbjörn Andersson
get the number of frames of a cutscene (to find the "lead out frame"), but this information is already provided by both the DXA and the SMK players. (It wasn't provided by the now obsolete MPEG player.) svn-id: r40735
2009-05-20Removed the "seamless" flag. It was something I added to cope with the fadeTorbjörn Andersson
in/out behaviour of the MPEG cutscene player, and no longer seems to be needed. svn-id: r40734
2009-05-19Changed calculations based on frame delay to be based on the scale of 1ms, ↵Filippos Karapetis
not 1/100. This fixes the FLIC player and also makes the overall code a bit clearer and easier to understand svn-id: r40730
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-05-13Fix some variable may be used uninitialized warnings.Johannes Schickel
svn-id: r40528
2009-05-06Const correctnessEugene Sandulenko
svn-id: r40346
2009-04-18sword2: add support for BS2 PSX demoFabio Battaglia
svn-id: r39977
2009-04-07Sword2: PSX version support, and GMM loading/savingFabio Battaglia
svn-id: r39896
2009-03-15sword2: added detection for Broken Sword 2 PSX, and a check to say wether pc ↵Fabio Battaglia
or psx version is run svn-id: r39417
2009-03-09Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as ↵Max Horn
some other tweaks svn-id: r39255
2009-03-07Added comment about a possible FIXME.Torbjörn Andersson
svn-id: r39207
2009-03-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
2009-03-07Don't show a warning dialog for missing cutscenes in the demo. As noted in bugTorbjörn Andersson
#2669360, the demo tries to play cutscenes which really aren't there. svn-id: r39194
2009-03-07Don't crash if a cutscene is missing. (Like they are in the demo, for instance.)Torbjörn Andersson
svn-id: r39186
2009-03-05Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match ↵Jordi Vilalta Prat
the meaning of the returned string, as discussed some time ago in scummvm-devel svn-id: r39132
2009-03-01Engines: Fused several init&go methods into a single run methodMax Horn
svn-id: r39003
2009-03-01Merged Engine::go() and ::init() into a new run() method (currently ↵Max Horn
implemented by calling the existing init&go methods; to be cleaned up by engine authors svn-id: r39002
2009-02-21Rewrote the cutscene player to be more like the one in Broken Sword 1. This ↵Torbjörn Andersson
fixes a subtitle colour regression, but mainly it simplifies the code. The "dummy" player has been removed. There are almost certainly regressions, but I'm hoping it's stable enough for testing now. svn-id: r38697
2009-02-20Since opening a compressed piece of music should no longer be an expensiveTorbjörn Andersson
operation, we can probably keep the mutex locked throughout the entire streamCompMusic() function. I'm not convinced that it was ever safe to unlock and relock it partway through. In fact, that's my prime suspect for bug #2614306 ("BS2: noise in music or speech"). svn-id: r38638
2009-02-20Instead of reading an entire compressed sound into a memory stream, use aTorbjörn Andersson
slightly extended SeekableSubReadStream to stream the sound from a file instead. This change is experimental, so it should almost certainly not go into 0.13. svn-id: r38637