aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
AgeCommit message (Collapse)Author
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
2009-02-15Applied my patch for the BS1/2 video playerFilippos Karapetis
- Support for the MPEG2 videos in BS1/2 has been dropped. The MPEG2 videos were lossy, and support for them complicated the code a lot. - Support for the non-existing enhanced MPEG cutscene packs for BS1 has been dropped. As a consequence, the credits player and the splitted audio stream players used for these packs has been removed - The original Smacker videos for both games are now supported, using our Smacker player (which is based off publically available specs and FFMPEG) - The animations now use the common video player code. Both the Smacker videos and our DXA video packs are supported svn-id: r38236
2009-02-07Make the subtitle settings in Options section of the global main menu ↵Travis Howell
optional, and enable only for game engines where subtitles settings are synced. svn-id: r36237
2009-01-31Disable the "press c for credits" hotkey (which wasn't in the original anyway)Torbjörn Andersson
because of strange rumors about the credits running spontaneously every few minutes. I don't know if this is a temporary or permanent measure. svn-id: r36155
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-29Replaced the old stack macros with ScummVM's FixedStack class.Torbjörn Andersson
svn-id: r35603
2008-12-21Move all video players to separate directoryEugene Sandulenko
svn-id: r35470
2008-12-14Enable Smacker support, and switch later HE games to Smacker support (since ↵Travis Howell
they aren't supported yet). svn-id: r35368
2008-12-03Changed readLine_OLD() to readLine_NEW(). I guess both this and the previousTorbjörn Andersson
readLine() change could be more robust, but at least it should be no worse than it was before. svn-id: r35226
2008-12-03Converted the credits scroller to use readLine_NEW() instead of readLine_OLD().Torbjörn Andersson
svn-id: r35224
2008-11-14Committed my patch #2123680 "SDL: Backend transaction / rollback support".Johannes Schickel
svn-id: r35062
2008-11-09Only hide the cursor for in-game pausing. Pausing from the outside is assumed toTorbjörn Andersson
bring up the GUI, which has its own cursor. (This fixes the cursor disappearing when pausing on one of the engine's own dialog windows.) svn-id: r34977
2008-11-09Added a getMaximumSaveSlot() implementation for sword1 and sword2Filippos Karapetis
svn-id: r34969
2008-11-09Removed some code that was added earlier to deal with dimming/undimming theTorbjörn Andersson
palette when pausing the game in a mid-fade. The game can only be paused in mid-fade from the outside, and then the palette isn't dimmed/undimmed. svn-id: r34958
2008-11-09Allow pausing (from the outside) during credits and palette fades. ↵Torbjörn Andersson
Refactored the code to distinguish outside pausing from in-game pausing, to avoid cursor-related problems. The screen is now only dimmed during in-game pausing. svn-id: r34957
2008-11-09Fixed pausing during credits.Torbjörn Andersson
svn-id: r34956
2008-11-09Allow pausing during cutscene movies. (This will need an update to the mixer'sTorbjörn Andersson
getSoundElapsedTime() function to work better.) svn-id: r34954
2008-11-09Moved sound-related settings to syncSoundSettings() for the global options ↵Torbjörn Andersson
dialog. svn-id: r34947
2008-11-06Switched various Engine APIs to use Common::ErrorMax Horn
svn-id: r34916
2008-11-06Got rid of OSystem::colorToRGB and RGBToColor; added implementations for ↵Max Horn
OSystem::getOverlayFormat to several ports (pending testing by the porters) svn-id: r34912
2008-11-05Turned enum PluginError into Common::Error, which in the future is to be ↵Max Horn
used in more places. Help with this is highly welcome svn-id: r34906
2008-11-05Got rid of the unused 'filename' attribute in SaveStateDescriptorMax Horn
svn-id: r34905
2008-11-04Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some ↵Max Horn
EngineFeature comments svn-id: r34896
2008-10-26Renamed engine feature kSupportsDirectLoad to kSupportsLoadingDuringStartup, ↵Filippos Karapetis
as discussed in patch #2122869 svn-id: r34854