Commit Graph
140 Commits
Author SHA1 Message Date
Max Horn 60fcd5a171 * Replaced MDT_PREFER_NATIVE/MDT_NATIVE by MDT_PREFER_MIDI/MDT_MIDI).
* Changed MidiDriver::createMidi so that if MD_ADLIB is passed, it
  now *does* instantiate the adlib driver.
* Rewrote MidiDriver::detectMusicDriver (code should be clearer now,
  and hopefully easier to adapt/maintain). Note that the behavior
  changed slightly (this may require some tweaking).
* Added MidiDriver::findMusicDriver which works similar to the old
  MidiDriver::parseMusicDriver but returns the full MidiDriverDescription
  and ignores all characters in the passed driver name following a colon ":".
* Changed MidiDriver::parseMusicDriver to use MidiDriver::findMusicDriver.
* Changed game engines to match the changes made to MidiDriver.
* Modified SCUMM engine to not record the selected midi/music driver
  (in _midiDriver), but rather the music *type* (in _musicType).

svn-id: r19859
2005-12-30 14:18:21 +00:00
Gregory Montoir fe9def0ac0 Made the autosave period a configuration option and updated the engines using that feature (SCUMM, Queen and Sky). The value is supposed to be in seconds ; if it's set to 0 then autosaving is disabled. See also tracker item #1350187.
svn-id: r19700
2005-11-23 19:11:33 +00:00
Gregory Montoir e763d1e060 added OutSaveFile::flush() / OutSaveFile::ioFailed() to check for errors.
svn-id: r19385
2005-11-01 13:56:11 +00:00
Eugene Sandulenko b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Eugene Sandulenko 81b46b6268 Fix regression introduced when we split engine constructiors into
constructor itself and init() method. debug() and error() are dependent
on _debug object in many engines, so if these methods were called on early
stage, scummvm crashed.

svn-id: r18860
2005-09-22 22:55:01 +00:00
Gregory Montoir b1167c6275 removed unneeded includes
svn-id: r18732
2005-09-02 10:58:21 +00:00
Gregory Montoir 91ad888d7c minor cleanup
svn-id: r18662
2005-08-11 18:07:47 +00:00
Paweł Kołodziejski e24bfbd204 fix compilation with emsvc4
svn-id: r18634
2005-08-08 10:59:21 +00:00
Eugene Sandulenko 6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn 8b1d7b9166 When including files from common/, explicitly use the common/ prefix
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn 1a615346ab Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn 72f4c03b0b Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
2005-05-10 23:17:38 +00:00
Max Horn b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Travis Howell 2f1ff2afec Use debugger for errors, where possible.
svn-id: r17998
2005-05-09 12:12:14 +00:00
Max Horn e79c168d35 split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
2005-04-10 15:13:40 +00:00
Torbjörn Andersson 49bab70ded Applied some ScummVM formatting conventions.
svn-id: r17430
2005-04-07 08:57:40 +00:00
Max Horn 9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Max Horn 0ec193b4be changing AudioDataType -> SoundType, so now the constant names match the name of the data type / the SoundMixer method names
svn-id: r17052
2005-03-09 18:12:54 +00:00
Joost Peters 89ecfa29ba Might as well return the GameSetting directly
svn-id: r17013
2005-03-06 22:35:12 +00:00
Joost Peters e630d450ed cleanup
svn-id: r17012
2005-03-06 21:44:40 +00:00
Joost Peters 8b19b3e340 Add demo detection; satisfies feature request #1154562.
svn-id: r17011
2005-03-06 18:08:46 +00:00
Joost Peters a33f973be8 fix typo
warning() appends a '!', so remove the trailing '.'

svn-id: r16883
2005-02-23 17:21:32 +00:00
Max Horn cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn 47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Gregory Montoir 8230330587 slightly less hackish Journal code
svn-id: r16357
2004-12-28 17:20:21 +00:00
Max Horn 53ff19eccb Use SoundMixer::kMaxMixerVolume
svn-id: r16350
2004-12-27 23:46:55 +00:00
Max Horn 67b311713d Added 'sound types' to the mixer - for now, only plain (for the premixer), SFX and music; volume is now controlled based on the sound type
svn-id: r16330
2004-12-27 00:27:00 +00:00
Max Horn 81b6e9e1e6 Get rid of the useless & troublesome master_volume
svn-id: r16328
2004-12-25 23:43:05 +00:00
Gregory Montoir ec2099a902 Fixed regression in queen floppy version. Before doing any speech/texts synchronization, we check the voice sfx exists. See also patch #1087870
svn-id: r16131
2004-12-19 12:19:21 +00:00
Joost Peters fd0569af62 Even more paranoia, since the older ScummVM releases allowed speech_mute to be false for floppy versions.
svn-id: r16101
2004-12-17 16:49:31 +00:00
Joost Peters 3c006a97a7 Simplify check.
svn-id: r16099
2004-12-17 13:54:17 +00:00
Joost Peters 5f04dfe0b9 Mute speech for floppy version as well.
This fixes the text speed for the floppy version after the recent Talk/Speech behaviour changes.

svn-id: r16095
2004-12-17 13:14:13 +00:00
Robert Göffringmann 0d7ab01640 Pass subdirectories to gamedetector functions
svn-id: r16002
2004-12-09 15:06:49 +00:00
Gregory Montoir fb5dcffff1 Minor cleanup, one more time.
Fixed a crash when returning to the launcher at the end of the game.
I played FOTAQ (french) from the beginning to the end some hours ago, I haven't encountered any special problems/glitches (except the one mentionned above).

svn-id: r15979
2004-12-03 22:39:55 +00:00
Gregory Montoir 5884c6735d simplified palette handling
svn-id: r15971
2004-12-02 22:59:57 +00:00
Gregory Montoir 891970cd76 enabled autosave
svn-id: r15970
2004-12-02 21:24:27 +00:00
Max Horn 5d5a13eec7 Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff
svn-id: r15968
2004-12-02 00:33:42 +00:00
Gregory Montoir f2fb63ffd9 enabled savegame loading on startup
svn-id: r15964
2004-11-30 21:01:25 +00:00
Jerome Fisher 9df1a8ea2f Fingolfin, I see what you mean about the volume control mess :)
This fixes Adlib playback, which was previously always mixed at volume 0.

svn-id: r15956
2004-11-28 23:57:33 +00:00
Jerome Fisher 5c6a1fcb2d - MIDI messages are now pre-processed and go through normal channel allocation, rather than being passed through directly.
svn-id: r15951
2004-11-28 23:03:32 +00:00
Max Horn 876e738dce Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
2004-11-27 00:26:11 +00:00
Eugene Sandulenko 31e434dcf1 Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.

svn-id: r15873
2004-11-24 00:14:21 +00:00
Gregory Montoir 6414ec92a2 cleanup, follow code conventions
svn-id: r15872
2004-11-23 22:21:45 +00:00
Gregory Montoir 9c317c95c3 sync queen engine with latest OSystem changes
svn-id: r15871
2004-11-23 21:51:30 +00:00
Max Horn aad9f122c0 Added Engine::init() method; added return value to Engine::go()
svn-id: r15865
2004-11-23 00:03:25 +00:00
Max Horn fa97d4ad89 Removing walkthrough stuff again (talked to aquadran about this, he had no objections)
svn-id: r15849
2004-11-20 23:49:11 +00:00
Paweł Kołodziejski 20e9cf6f20 added walkthrough
svn-id: r15835
2004-11-19 19:50:22 +00:00
Gregory Montoir a1867735a3 change engine initialization as suggested on -devel
svn-id: r15822
2004-11-15 19:38:57 +00:00
Eugene Sandulenko 2c76a8e024 Support MT-32 emu.
svn-id: r15657
2004-10-22 23:44:08 +00:00
Gregory Montoir bbf1de48d5 make queen engine returning to the launcher when finished (next step: plug all the memory leaks, mainly in Logic class)
svn-id: r15511
2004-10-10 17:12:50 +00:00