aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
AgeCommit message (Collapse)Author
2007-02-17Added finalize() method to Common::OutSaveFile (which by default just ↵Max Horn
flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing) svn-id: r25660
2007-02-03Fixing various doxygen warningsMax Horn
svn-id: r25362
2007-02-03* Reimplemented Mixer::pauseAll to simply invoke pause on all channelsMax Horn
(implying change of semantics) * Reordered the params of Mixer::playRaw (the SoundType now comes first, not last) * Removed Mixer::isPaused * Removed Mixer::getSoundElapsedTimeOfSoundID * Added some doxygen comments to the Mixer svn-id: r25356
2007-01-20First phase of detection-related plugins interface improvements. Now pluginsEugene Sandulenko
return StringMap instead of fixed list of parameters. This adds great flexibility. Current patch should not alter any functionality, i.e. if there are regressions, submit a report. Phase 2 will benefit from these changes and will come later. svn-id: r25134
2006-12-15GF_DEMO is only required by the PC version of Broken Sword 1 demoTravis Howell
svn-id: r24853
2006-12-14Add proper detection of BS1 Mac demo. Game crashes at attempt to play speech.Eugene Sandulenko
svn-id: r24851
2006-12-14When drawing an interlaced frame, only clear every other line instead of theTorbjörn Andersson
entire buffer. Introduced a _drawBuffer pointer which points either to _scaledBuffer or _frameBuffer1. That way, we don't need to copy _frameBuffer1 every time we draw an unscaled frame. (Probably the most common case by far.) Adjusted the Broken Sword 1 DXA player for the second change. (It sneakily avoids copying each frame by using _drawBuffer directly.) svn-id: r24846
2006-12-11Adjust DXA scaling code for Broken Sword 1Travis Howell
svn-id: r24841
2006-11-12Slighty modified Patch #1571787: "Support for Mac Broken Sword 1". sword1macdemoEugene Sandulenko
target was commented out until existence of the demo is confirmed. svn-id: r24697
2006-09-23Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle ↵Max Horn
the linker dependency graph). Porters will have to update project files svn-id: r23974
2006-09-17Only decompress the number of speech samples indicated by 'resSize'. ThisTorbjörn Andersson
prevents crashes in the demo, and is probably a good idea anyway. svn-id: r23917
2006-09-16Reduce code duplicationMax Horn
svn-id: r23888
2006-09-09Fixed unaligned read (this fix a potential crash clicking on the Text option ↵Chris Apers
button) svn-id: r23845
2006-09-09Initialise variable. Should fix Valgrind warning.Torbjörn Andersson
svn-id: r23838
2006-09-09Fixed crashes on Zodiac and add support for this deviceChris Apers
svn-id: r23837
2006-08-28Only clear the part of the screen usually controlled by the Screen class. TheTorbjörn Andersson
buffer might not be large enough to cover the menu areas, and they will probably be clear already. Only terminate the loop, not the entire function, when pressing Esc during a cutscene. Otherwise, there may be palette glitches. svn-id: r23790
2006-08-27Forgot to close the DXA file.Torbjörn Andersson
svn-id: r23775
2006-08-27Renamed graphics/animation.[cpp|h] to graphics/mpeg_player.[cpp|h] to be moreTorbjörn Andersson
consistent with dxa_player.[cpp|h]. (Though actually, "decoder" might be more accurate...) svn-id: r23774
2006-08-26Now that the cutscene handling in both BS1 and BS2 has been extended to playTorbjörn Andersson
DXA movies (the MPEG movies still work, of course), there is no longer any need for the MPEG decoder to handle sound and frame syncing. That is now the responsibility of the player, not the decoder. The obvious next step, then, would be to put that in a new player class, and have both BS1 and BS2 use that. Maybe FF as well. svn-id: r23757
2006-08-26Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCATorbjörn Andersson
player does not support the (unreleased) multi-lingual cutscene pack, since I don't have one to test with. It needs to be cleaned up a bit, but the next step will be to clean up the MPEG decoder first. svn-id: r23753
2006-07-31* Added copyright string to all engine pluginsMax Horn
* Modified about dialog to list all available plugins with their resp. copyright * Modified about dialog credits to show the GPL last (like movie end credits do with their legal text, too) svn-id: r23645
2006-07-23Use #include "..." instead of #include <...> for pack-start.h and pack-end.hTorbjörn Andersson
for consistency with other #includes. svn-id: r23585
2006-07-22Fix struct packing issues (macros are not resolve in #pragma params, at ↵Max Horn
least for GCC) svn-id: r23569
2006-07-22Using FilesystemNode::name instead of FilesystemNode::displayName in the ↵Johannes Schickel
sword1 detector code too. svn-id: r23556
2006-07-21Removing GCC_PACK, we fully rely on START_PACK_STRUCTS / END_PACK_STRUCTS ↵Max Horn
now (hiya eriktorbjorn, this one is for you *ggg*) svn-id: r23547
2006-07-09Use START_PACK_STRUCTS / END_PACK_STRUCTS when available, instead of ↵Max Horn
checking for GCC / not GCC svn-id: r23458
2006-06-24* Renamed config.mak to config.mkMax Horn
* Renamed common.rules to rules.mk * Removed explicit declaration of MODULE_DIRS in various spots (instead we let rules.mk compute it) svn-id: r23275
2006-06-24Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cppMax Horn
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h) svn-id: r23274
2006-06-20Cleanup.Torbjörn Andersson
svn-id: r23194
2006-05-25Set and show/hide mouse cursors through a "cursor manager" (analogous to theTorbjörn Andersson
recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639
2006-05-25Setting a "null" cursor like this doesn't do anything in the SDL backend, andTorbjörn Andersson
could possibly be undefined in other backends. So it should be safe to remove. svn-id: r22636
2006-05-18Renamed screenChanged() to handleScreenChanged().Torbjörn Andersson
svn-id: r22518
2006-05-18Allow changing scaler while playing MPEG cutscenes.Torbjörn Andersson
svn-id: r22515
2006-05-17- Heavily modified patch #1214784: "Disable overlay scaling"Eugene Sandulenko
- Eriktorbjorn's patch from same tracker item for scaling sword1/2 cutscenes is applied as is. It lacks resolution switch on-the-fly. - GUI widgets are repositioned on the fly and use most space, even aspect ratio corrected screen is used without scaling - Heavy tesing is required, but works for me in all cases except for bug #1483272: "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more work. - I probavly broke some backend or two svn-id: r22505
2006-05-03Changed FilesystemNode::listDir to return a bool indicating its success (or ↵Max Horn
failure) svn-id: r22315
2006-05-03Use FilesystemNode, never AbstractFilesystemNode (which is for internal use ↵Max Horn
only) svn-id: r22296
2006-04-29Moved the AudioCDManager as well as class AudioStream and its (standard) ↵Max Horn
subclasses to namespace Audio svn-id: r22231
2006-04-29* Changed the createEngine() factory function of our plugins to return an ↵Max Horn
error code (the engine is now passed indirectly via a double pointer) * Removed Engine_Empty (obsolete now that engines can return actual error codes) svn-id: r22199
2006-04-21Fixed silly bug in --save-slot handling: Don't try to restore a savegame unlessTorbjörn Andersson
the specified save slot is > 0. (The default value is -1, which shouldn't be restored either.) I thought I had fixed that already, but I guess I made a last-minute change... svn-id: r22069
2006-04-18Added support for the --save-slot option for Broken Sword 1. (Feature requestTorbjörn Andersson
#1460977.) svn-id: r22009
2006-04-18Call updateScreen() from delay functions for smoother mouse cursor movement.Torbjörn Andersson
svn-id: r21996
2006-04-15- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a ↵Max Horn
new getActiveDomain method that returns a pointer to the actual active *domain* - Added Engine::_targetName whose value is computed from the name of the active domain - Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain - This in turn allowed for removing usage of GameDetector in many places svn-id: r21916
2006-04-15Removed GameDetector::_gameid in favor of using a config manager entryMax Horn
svn-id: r21915
2006-04-08Modified the REGISTER_PLUGIN macro so that it allows (and requires) a ↵Max Horn
trailing semicolon (this helps certain tools to parse our code better) svn-id: r21689
2006-04-04Removed extra exclamation marks in warning() calls as well.Eugene Sandulenko
svn-id: r21608
2006-04-01A lot of code in sword1/router.cpp and sword2/router.cpp is virtually ↵Max Horn
identical -- unified the two files in many places (but a lot more could be done, feel free to pick up and continue this work) svn-id: r21526
2006-03-29Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 ↵Max Horn
to ~250). Many greetings to eriktorbjorn, and have fun recompiling. svn-id: r21500
2006-03-09- Renamed GameSettings to PlainGameDescriptorMax Horn
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with Common::String members instead of const char * ones) - Changed DetectedGame to subclass GameDescriptor - Removed toGameSettings() in favor of new (template) constructors in DetectedGame and GameDescriptor - Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines svn-id: r21150
2006-03-02Fix for bug #1438822 (Targets are case sensitive)Max Horn
svn-id: r21017
2006-02-21Removed the "extra bars/nodes" code, since nothing ever added the extra bars orTorbjörn Andersson
nodes. Removed the path-plotting debugging code, since the line-drawing function has been a stub for the past few years, as far as I can tell. Similar code was removed from the BS2 router long ago, so this could be a first tiny step towards bringing them together. svn-id: r20805