aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
AgeCommit message (Collapse)Author
2006-07-22Using FilesystemNode::name instead of FilesystemNode::displayName in the ↵Johannes Schickel
sword2 detector code too. svn-id: r23557
2006-07-22Cleanup.Torbjörn Andersson
svn-id: r23551
2006-07-21Removing redundant paranthesisOystein Eftevaag
svn-id: r23543
2006-07-15Some cleanups and restructuring. The clearScreen() function has been renamedTorbjörn Andersson
clearFrame(), and is only responsible for clearing the frame buffer. Frame syncing and frame drawing are now separate from each other. svn-id: r23525
2006-07-15Fixed regression: Test if there's a text object to close before closing it.Torbjörn Andersson
svn-id: r23524
2006-07-15Close the current text object when the movie is ended, to avoid potentialTorbjörn Andersson
memory leak, and be a bit more robust about handling text objects in the dummy player. svn-id: r23523
2006-07-15Oops. I just noticed I was using _black to track the white colour, and _whiteTorbjörn Andersson
to track the black colour. svn-id: r23522
2006-07-15This is more consistent with how we usually initialize arrays of structs, andTorbjörn Andersson
seems to still keep msvc8 happy. svn-id: r23521
2006-07-15Should fix shadowing warnings with gcc.Johannes Schickel
svn-id: r23520
2006-07-15Fix building with msvc8.Johannes Schickel
svn-id: r23518
2006-07-10Moved the initial screen clearing from play() to load(), so that it will beTorbjörn Andersson
done before the MPEG player calls showOverlay(). svn-id: r23482
2006-07-10Fixed bug #1519817, "ALL: Build failure if libmpeg2 is disabled".Torbjörn Andersson
svn-id: r23470
2006-07-08CleanupTorbjörn Andersson
svn-id: r23439
2006-07-08More robust handling of the optional startup.inf file.Torbjörn Andersson
svn-id: r23436
2006-07-08Slightly more verbose debug message.Torbjörn Andersson
svn-id: r23428
2006-07-08Added support for DXA cutscenes, while still retaining support for the old MPEGTorbjörn Andersson
cutscenes and the "dummy" (subtitles and voice-over) mode. Several tweaks and cleanups were made in this process, and there may very well be regressions, but it should be stable enough to commit. svn-id: r23420
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-03MPEG player fixes:Torbjörn Andersson
* Initialise _frameWidth and _frameHeight to prevent them from being undefined. * Fix BS2 subtitle positioning. (Fixes bug #1499916) * In BS2, copy the frame to the backend in 8-bit mode. * Fix compilation in 8-bit mode. BS2 subtitles aren't quite right in 8-bit mode, but I expect we want to re-design things a bit if we ever add DXA cutscenes. We can fix minor details then. svn-id: r22859
2006-05-28We already have a default setting for subtitles, so this shouldn't be needed.Torbjörn Andersson
svn-id: r22704
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-24Only check if the files on "CD 0" are present. The others are requested withTorbjörn Andersson
"insert CD" messages. (Of course, that isn't supported, or even well tested, but the idea is sound.) This makes it possible to run the BS2 demo again. Incidentally, this is how I *meant* for it to work when I added that check - I even wrote so in the comment above that section of the code - so how on earth did I manage to screw it up like that? svn-id: r22594
2006-05-18Initialise _resList to avoid crash (from freeing an invalid pointer) if theTorbjörn Andersson
data files are missing. svn-id: r22520
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-10Removed hack that was used to limit the mouse cursor to (at most) 80x80 pixels.Torbjörn Andersson
That limit has been lifted from the SDL backend. NOTE: This may cause problems in other backends! svn-id: r22405
2006-05-04Set speech_mute/sfx_mute/music_mute values in one single central placeMax Horn
svn-id: r22342
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-26Do not call static class methods as if they were instance methodsMax Horn
svn-id: r22172
2006-04-26If the resource manager fails to initialize itself properly, instead ofTorbjörn Andersson
printing a fatal error, use the new GUIErrorMessage function and return to the launcher. Also, verify that all files that should be present on "CD 0" (i.e. on the hard disk) are present at startup, at least. (Any other missing CLU file is already requested with an "Insert CD" message.) svn-id: r22168
2006-04-26Fixed the output from the "res" debugger command that I accidentally broke, oh,Torbjörn Andersson
almost four months ago. svn-id: r22167
2006-04-16Fix for bug #1471383: Instead of overloading ConfigManager::set, we now have ↵Max Horn
new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch) svn-id: r21951
2006-04-16Do not override the 'directory' param when dumping BS2 resourcesMax Horn
svn-id: r21935
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-08Renamed various *GameSettings to GameSettings (our namespaces are enough to ↵Max Horn
distinguish them) svn-id: r21686
2006-04-04Since our debug() adds an exclamation mark at the message end, removeEugene Sandulenko
it in several calls to avoid duplication!!11! svn-id: r21607
2006-04-03Merged d_draw.cpp and rdwin.cpp (what little remained of them) into screen.cpp.Torbjörn Andersson
svn-id: r21573
2006-04-01Simplified loading of startup.infTorbjörn Andersson
svn-id: r21538
2006-04-01Guard against too many entries in resource.inf, since there has been a TODOTorbjörn Andersson
comment about that (removed in the previous commit) since roughly forever. svn-id: r21536
2006-04-01Simplified the loading of resource.infTorbjörn Andersson
svn-id: r21533
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-19Revert FLAG_AUTOFREE changes to loadWAVFromStreammakeWAVStreamTravis Howell
svn-id: r21376
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-09- added new toDetectedGame() template function (analog to toGameSettings)Max Horn
- made use of the new DetectedGame constructor from my last commit - some related cleanup svn-id: r21149
2006-03-08Fixed tons of format string warnings for debug/error calls (including ↵Max Horn
several errors where the format string didn't match the number of arguments to the call) svn-id: r21141