aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
AgeCommit message (Collapse)Author
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
2006-03-02Fix for bug #1438822 (Targets are case sensitive)Max Horn
svn-id: r21017
2006-02-23fixed warningsPaweł Kołodziejski
svn-id: r20829
2006-02-20Fix for bug #1428261 (Solaris x86 build fails: variable name collision)Max Horn
svn-id: r20787
2006-02-18- Merged GameDetector::detectGame() into GameDetector::detectMain()Max Horn
- Replaced GameSettings GameDetector::_game by a simple gameid string svn-id: r20753
2006-02-18- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistencyMax Horn
- renamed Engine_XXX_gameList to Engine_XXX_gameList for consistency - added new Engine_XXX_findGameID / PLUGIN_findGameID function - updated plugins code to take advantage of the new plugin API, to support obsolete gameids w/o showing them to the user svn-id: r20752
2006-02-18- Removed the 'features' field from GameSettingsMax Horn
- Removed GF_DEFAULT_TO_1X_SCALER svn-id: r20747
2006-02-17This file was obsoleted by the previous commit, but I didn't want to force SVNTorbjörn Andersson
to remove it. Removed it now instead. svn-id: r20742
2006-02-17Removed includes from sword2.h so that (hopefully) there will eventually beTorbjörn Andersson
less dependencies. svn-id: r20741
2006-02-17Added global toGameSettings() template function for convenience; simplified ↵Max Horn
GameSettings usage in some engines svn-id: r20739
2006-02-17Reduced use of GF_DEFAULT_TO_1X_SCALER in favor of a new param to ↵Max Horn
Engine::initCommonGFX; added a TODO stating that it should eventually be removed completly svn-id: r20738
2006-02-12Merged _mouse.cpp and mouse.cpp into mouse.cppTorbjörn Andersson
svn-id: r20659
2006-02-12Standardized the preprocessor constants used to prevent double inclusion ofTorbjörn Andersson
header files. Each now begins with "SWORD2_" and ends with "_H". (Well, except for "SWORD2_H", since I didn't want to name it "SWORD2_SWORD2_H".) svn-id: r20655
2006-02-12Oops. Forgot to tell SVN to actually *move* the files. I'll get the hang of itTorbjörn Andersson
eventually. svn-id: r20652