Commit Graph

630 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
Max Horn
e74799c32e cleanup
svn-id: r19846
2005-12-29 21:21:16 +00:00
Robert Göffringmann
31a7c1f073 make sure all Text compacts were killed after restoring a savegame
svn-id: r19795
2005-12-13 15:27:32 +00:00
Robert Göffringmann
67d640b214 forgot to remove this
svn-id: r19793
2005-12-13 15:07:19 +00:00
Robert Göffringmann
f74b5711a6 changed delay code
svn-id: r19792
2005-12-13 15:05:06 +00:00
Robert Göffringmann
c477d54570 fixed Sky memory leaks on quitting
svn-id: r19791
2005-12-13 14:31:13 +00:00
Max Horn
7753864599 Fix warning
svn-id: r19768
2005-12-09 22:23:55 +00:00
Robert Göffringmann
fd3797a9d6 minor cleanup
svn-id: r19753
2005-12-06 16:50:39 +00:00
Robert Göffringmann
31b015cb42 fixed bug.
Before, when a subtitle would get displayed because the corresponding speechfile wasn't found and the player escaped it by clicking with the mouse, it'd stay on screen forever.

svn-id: r19751
2005-12-06 16:13:39 +00:00
Robert Göffringmann
e59eed409e some cleanup, engine returns to the launcher now instead of calling OSystem::quit.
I suppose it leaks memory though...

svn-id: r19743
2005-12-05 05:02:43 +00:00
Chris Apers
64bfec97d9 Not needed anymore :)
svn-id: r19735
2005-12-03 19:04:33 +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
Robert Göffringmann
619f0fa5a0 fixed segmentation fault when speed/volume sliders are clicked and then dragged out of the scummvm window.
svn-id: r19683
2005-11-21 18:21:44 +00:00
Chris Apers
cb12c0c1da - Move opcode tables to methods so that they are correctly initialized with PalmOS ARM
svn-id: r19474
2005-11-05 19:06:01 +00:00
Chris Apers
35748cfe92 PalmOS ifdef
svn-id: r19473
2005-11-05 19:00:15 +00:00
Robert Göffringmann
6f1016e71f call OutSaveFile::flush() to check for errors
svn-id: r19298
2005-10-26 06:00:18 +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
Torbjörn Andersson
c16047815f Avoid integer overflow in volume parameter to playRaw(). This fixes bug
#1288081, the "missing" sound effects in the floppy intro.

svn-id: r18811
2005-09-12 07:01:46 +00:00
Torbjörn Andersson
6f7c29fe9b Whitespace change.
svn-id: r18797
2005-09-09 10:22:05 +00:00
Torbjörn Andersson
660b8d0eeb Use British English by default, as documented in the README file, not US
English. Since the game detector uses US English as its default language,
we also need to explicitly set the language when detecting the game. I find
that behaviour a bit unfortunate.

svn-id: r18796
2005-09-09 10:12:38 +00:00
Torbjörn Andersson
b6a5b0acaf Whitespace changes
svn-id: r18788
2005-09-08 14:08:04 +00:00
Torbjörn Andersson
e64b22f5bd Use a quieter helicopter sound during the "He was only a robot. Oh, I loved
the little guy." line to keep it from being drowned out. I don't know what
the original did, but one of my old patches (pre-0.5.0, I think) messed
around here, so I may have broken it then. Or not. Anyway, this sounds
better to me.

svn-id: r18723
2005-08-30 17:14:40 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Lars Persson
d4716a1fb5 * Start of generic key configuration support for ScummVM
* Moved KeyConfigDialog, key from WinCE to gui
* Updated wince code to inherit and use new GUI::Keys and launch new dialog
* New definition SMALL_SCREEN_DEVICE when keysdialog should be inittialized from options.cpp
* Added new function to SDL\Events that handles key remapping.  LINUPY & QTOPIA remapping moved to that function. SymbianOs.cpp overrides this function to enable key remapping to events
* Compiled VC6++ project. This with warnings and errors, but NOT in the changed code. (SAGA,KYRA)
* Compiled using WCE tools 3 for X86 target and running Scummvm in emulator to test
* Compiled with UIQ target. The rest Symbian platforms might require further configuration to operate properly
* Actor.h in Saga now compiles for default VC6 setting.
* Aspect.cpp does not compile in VC6/WCE due to template problems with the kFastAndNiceAspectMode setting.
* Changed order of creation of gamedetector and mainsystem in Main.cpp
* If anything does not compile, or is totally out of order, please revert changes.

svn-id: r18498
2005-07-05 20:22:56 +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
Oliver Kiehl
8fbbd28f79 disambiguate undefined operation by removing unneeded calculation.
svn-id: r18434
2005-06-22 08:33:46 +00:00
Lars Persson
1c69696a9a Patches needed to build for SYMBIAN32 WINS/GCC added.
Test built for Symbian and run on P910i without any major problems.
Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA).

svn-id: r18430
2005-06-21 22:08:21 +00:00
Max Horn
90036d6d8a Patch #1224631 (fix gcc4 virtual functions non-virtual destructor warnings)
svn-id: r18424
2005-06-21 16:45:18 +00:00
Max Horn
8228162017 Patch #1184666 (SKY: More LINC charset fixes)
svn-id: r18337
2005-06-04 13:58:11 +00:00
Max Horn
2de46dc8eb Moved some more stuff to namespace Audio (enough for tonight)
svn-id: r18040
2005-05-11 00:01:44 +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
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +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
Jonathan Gray
24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Joost Peters
60a64494d1 use upper bits instead of lower bits when upscaling palette
svn-id: r17423
2005-04-06 19:18:08 +00:00
Jerome Fisher
eda317924e Committed patch #1168149 (Shared GM/MT-32 mapping) by eriktorbjorn as-is. This does the following:
- Replaces multiple identical MT-32-to-General MIDI mapping tables with a common one in MidiDriver.
- Changes Sky's GmChannel class to allow NULL instrument and velocity mapping tables, giving a 1-to-1 mapping without creating a dummy table.

svn-id: r17361
2005-04-03 22:01:38 +00:00
Jonathan Gray
4e3bfc6a66 Implement pausing using the 'p' key like the original did.
Feature request #1145781.

Convert key handling from if statements to a case statement
while here.

svn-id: r17321
2005-04-01 07:33:39 +00:00
Jonathan Gray
2d26bfcb47 Display text in Restart Yes/No Dialog for consistency with
Quit dialog.  Pointed out in part of FR #1145781.

svn-id: r17320
2005-04-01 07:30:25 +00:00
Max Horn
9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Eugene Sandulenko
749cf8a083 Apply patch #1162546 "BASS: Hanging notes fix / patch". Thanks __tom.
svn-id: r17177
2005-03-18 11:05:15 +00:00
Joost Peters
4a36c4f7b4 Use same length as original, as the string is split across 2 lines it doesn't matter anyway.
this way we won't have to create a temporary buffer.

svn-id: r17122
2005-03-13 14:03:54 +00:00
Joost Peters
c5c6bf838d Fix/workaround for bug #1151924 - datafiles for the floppy version contain 'broken' string when using spanish text.
svn-id: r17117
2005-03-13 13:15:17 +00:00
Max Horn
7cd2cb2b17 PlayingSoundHandle -> SoundHandle; also, turned the handle activity check into a mixer method
svn-id: r17106
2005-03-12 18:56:09 +00:00
Eugene Sandulenko
4493b064dd Slighy modified patch #1161756 "Patch for external / non-volatile GMIDI synths". Thanks, __tom.
svn-id: r17091
2005-03-12 11:34:10 +00:00
Chris Apers
365193b447 Not needed any more
svn-id: r17078
2005-03-11 10:56:24 +00:00
Chris Apers
bb3278a088 PalmOS : ARM optimized unpacker
svn-id: r17077
2005-03-11 10:55:10 +00:00