Commit Graph

569 Commits

Author SHA1 Message Date
Torbjörn Andersson
35a0c52f42 Clarified the comment added in the previous commit slightly.
svn-id: r14776
2004-08-26 13:53:20 +00:00
Torbjörn Andersson
13b59c1b42 Reset the "pitch wheel" when turning off a note. This should fix bug
#1016556, hopefully without causing regressions.

svn-id: r14775
2004-08-26 13:51:06 +00:00
Joost Peters
18758f1b94 typo
svn-id: r14755
2004-08-25 22:32:15 +00:00
Joost Peters
2b47c12f7a remove unused variables
svn-id: r14649
2004-08-20 13:42:43 +00:00
Joost Peters
cdd3397c29 Initialize variables (fix valgrind warnings)
svn-id: r14648
2004-08-20 13:37:50 +00:00
Joost Peters
9fadfae98d Fix potential OOB read
svn-id: r14643
2004-08-19 11:16:55 +00:00
Paweł Kołodziejski
d62ff5dca7 fixed warnings
svn-id: r14603
2004-08-14 09:10:14 +00:00
Torbjörn Andersson
e02e6408f2 Adapted Fingolfin's BS1 code for better error messages when save/restore
fails. The downside to this is that while the error dialog is showing, the
mouse cursor is drawn in dark greys, so it's almost invisible.

svn-id: r14260
2004-07-18 18:25:16 +00:00
Torbjörn Andersson
8f6a619913 (Ab)used the yes/no dialog to show an error message if saving a game fails.
As far as I can tell, writing a proper one-button dialog is tricky. It
can't re-use a button from the yes/no dialog since the whole thing appears
to be just one sprite!

svn-id: r14178
2004-07-08 12:21:40 +00:00
Max Horn
b8ad54b3af Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
svn-id: r14090
2004-06-27 22:14:35 +00:00
Max Horn
6b722ff11b Added Engine::_saveFileMan; thus was able to get rid of auto_ptr usage again
svn-id: r14058
2004-06-25 22:39:21 +00:00
Max Horn
7a8d469c66 Use auto_ptr to avoid leaks
svn-id: r14057
2004-06-25 22:12:57 +00:00
Joost Peters
bd19811d19 Get rid of mouse transparancy hack
svn-id: r13795
2004-05-06 00:25:18 +00:00
Max Horn
14378cb56e Renamed more OSystem methods
svn-id: r13410
2004-03-28 16:30:50 +00:00
Joost Peters
641277fd16 some cleanup
svn-id: r13263
2004-03-13 22:58:50 +00:00
Nicolas Bacca
07d918ace2 Yearly CE BASS intro synch fix
svn-id: r13199
2004-03-05 08:53:31 +00:00
Max Horn
c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
d158280425 the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
2004-02-24 22:39:42 +00:00
Torbjörn Andersson
66f065d3d6 Workaround for BASS bug #897775. As far as I can tell there is no proper
fix for this bug, but please prove me wrong.

svn-id: r12916
2004-02-16 16:51:44 +00:00
Travis Howell
adaeb61054 Add Change --floppy-intro to --alt-intro patch (#896311)
svn-id: r12844
2004-02-13 10:51:33 +00:00
Torbjörn Andersson
d21b5455c6 Fixed bug #870890.
svn-id: r12825
2004-02-11 18:01:26 +00:00
Max Horn
f59eb3b219 renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
svn-id: r12722
2004-02-05 00:19:57 +00:00
Max Horn
da76ac5890 Various changes to the build system which allow building ScummVM in an external directory (and as such, allow you to have a debug, a profiling, and a release build from the same set of source files in parallel). Work in progress
svn-id: r12680
2004-01-30 21:54:28 +00:00
Nicolas Bacca
a5aba18abf Remove old CE tweak
svn-id: r12626
2004-01-26 20:28:35 +00:00
Paweł Kołodziejski
ce3e6d7fd8 fix warning
svn-id: r12498
2004-01-18 20:11:52 +00:00
Nicolas Bacca
76298a9cec Implements TOGGLE_VIRTUAL_KEYBOARD
svn-id: r12459
2004-01-17 23:40:36 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
d1e6c6059e renamed global var _debugLevel to g_debugLevel; let Engine constructor init it (this way all engines get it for free, allows further cleanup); removed some useless/duplicate member vars in SwordEngine
svn-id: r12134
2004-01-04 14:00:58 +00:00
Max Horn
14f28d58f1 remove 'Sky' name prefix for most stuff (not needed anymore since we are in namespace 'Sky' now)
svn-id: r12114
2004-01-03 15:57:57 +00:00
Max Horn
b0e23e35ee Introduce namespace 'Sky'
svn-id: r12099
2004-01-03 01:58:58 +00:00
Max Horn
859a9c0129 o Added SoundMixer::isReady()
o Removed SoundMixer::bindToSystem()
o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady()

svn-id: r11893
2003-12-24 17:42:22 +00:00
Max Horn
e9269257f3 turned PlayingSoundHandle into an 'opaque' (well not really :-) data type, mainly because people kept (accidentally and sometimes on purpose :-) misusing them
svn-id: r11881
2003-12-24 00:25:18 +00:00
Max Horn
f19f73eb50 Make it possible for game detection functions to detect language/platform (not yet done by any detector, but will come with the MD5 detection code)
svn-id: r11811
2003-12-21 15:29:52 +00:00
Max Horn
676bf4d683 incorrect use of pauseChannel (replaced by correct pauseID)
svn-id: r11800
2003-12-21 00:41:59 +00:00
Max Horn
d0b74e81a6 cleanup
svn-id: r11792
2003-12-21 00:00:19 +00:00
Max Horn
0cddca5f43 unregister the premix proc when you go away
svn-id: r11755
2003-12-19 01:08:30 +00:00
Max Horn
35b62c294d removed GameSettings::detectname and GameSettings::midi; renamed GameSettings::gameName to name; added temporary experimental MD5 hack
svn-id: r11603
2003-12-13 00:20:01 +00:00
Max Horn
9008abc7ea cleanup: no need to access detector->_game.midi, since the value is fixed anyway
svn-id: r11596
2003-12-12 14:40:40 +00:00
Travis Howell
3774c09dbe Backwards compatbility
svn-id: r11459
2003-12-02 08:12:39 +00:00
Travis Howell
c793e4c9df Switch nosubtitles option to subtitles, to match others and help with Simon2 issue.
svn-id: r11458
2003-12-02 08:09:14 +00:00
Max Horn
72eb8ccb89 Patch #847464: Remove spurious semicolons
svn-id: r11445
2003-12-01 09:58:55 +00:00
Max Horn
e34f2b8b33 cut down on unnecessary GameDetector references
svn-id: r11239
2003-11-10 01:04:12 +00:00
Paweł Kołodziejski
b99af18bd5 cleanup whitespaces
svn-id: r11213
2003-11-08 20:27:27 +00:00
Jonathan Gray
239aea0ff0 spelling fixes
svn-id: r11178
2003-11-07 02:31:44 +00:00
Marcus Comstedt
ef5e193d59 stdafx.h needs to be included first.
svn-id: r11117
2003-11-03 22:28:37 +00:00
Max Horn
078091e7f4 cleanup of game detector functions
svn-id: r11024
2003-11-01 16:39:26 +00:00
Max Horn
6a50ad9fbd avoid using detectname
svn-id: r11021
2003-11-01 16:02:14 +00:00
Max Horn
53db0a8a07 cleanup: removed version/id from GameSettings
svn-id: r10995
2003-10-28 17:07:25 +00:00
Robert Göffringmann
8f4f507c33 fix bug #828222: Adlib music stops during browsing the inventory
svn-id: r10963
2003-10-25 14:25:24 +00:00
Torbjörn Andersson
61aaa5b40b Changed the behaviour of the page up/down buttons in the save/load dialog.
LavosSpawn tells me that the previous behaviour was, in fact, what the
original did, but agreed that it was confusing.

The new behaviour is consistent with how BS2 does it, by the way.

svn-id: r10962
2003-10-25 14:15:21 +00:00
Max Horn
33f2fbff08 We proudly present the latest installment of our hit series 'Untangle the mess': 'Help! Space Invaders refactored the music detector'... in other news, I obviously need to sleep now
svn-id: r10883
2003-10-18 00:22:46 +00:00
Max Horn
0694eed273 moved game detection code out to the plugins
svn-id: r10882
2003-10-17 23:16:53 +00:00
Max Horn
ad2db08940 renamed some Timer methods
svn-id: r10868
2003-10-17 16:39:32 +00:00
Max Horn
a70460833e moved platform/language constants to common/util.*
svn-id: r10862
2003-10-17 15:35:46 +00:00
Max Horn
ebd314a9ec fix debug mode 0
svn-id: r10791
2003-10-14 07:52:34 +00:00
Max Horn
36fd7ec445 some renaming for more consistent terminology (although we might want to reevaluate this): 'target' is what is in your config file; 'game' is what a frontend provide. E.g. the scumm frontend provides the game 'monkeyvga', and my config file has target 'monkeyvga-ger' configured to use that game
svn-id: r10766
2003-10-12 18:40:12 +00:00
Jamieson Christian
13541879e0 Fix for Bug [817286] MT-32 execution checksum errors
logicdeluxe's patch to avoid MT-32 processing
overflows when sending large amounts of SysEx data.

svn-id: r10755
2003-10-12 14:47:44 +00:00
Nicolas Bacca
de086642a9 EVC is happy now
svn-id: r10745
2003-10-12 13:33:21 +00:00
Max Horn
5301edc383 some cleanup
svn-id: r10720
2003-10-10 13:55:08 +00:00
Max Horn
ed5948272d constness
svn-id: r10714
2003-10-10 10:42:37 +00:00
Max Horn
d177364715 new config manager. not everything is completed, and some things will still be changed, but it seems to work well enough to put it into CVS
svn-id: r10687
2003-10-08 21:59:23 +00:00
Jamieson Christian
69964cda56 Corrected MT-32 master volume SysEx
svn-id: r10671
2003-10-07 15:13:39 +00:00
Max Horn
bfce5e500a renamed SkyState to SkyEngine; cleaned the #include dependency mess a bit (try to only #include files when you *have* to -> this reduces compilation time to a minimum when header file changes are made)
svn-id: r10622
2003-10-05 20:21:20 +00:00
Max Horn
b4e5d97994 factor out common gfx_mode/fullscreen setup code from the game engines into the main code (maybe putting this into the Engine constructor would be better, though?)
svn-id: r10611
2003-10-05 14:37:16 +00:00
Max Horn
d4734bd4f2 use namespace Common a bit more; don't zero the RNG in scumm (else the seed gets reset); remove obsolete 256 color blending code
svn-id: r10592
2003-10-04 11:50:21 +00:00
Jamieson Christian
056974821a Fix OOB SysEx checksums
svn-id: r10572
2003-10-03 18:59:48 +00:00
Torbjörn Andersson
cee745dbf9 Whitespace changes
svn-id: r10516
2003-10-01 09:40:28 +00:00
Torbjörn Andersson
920c11972e Whitespace changes
svn-id: r10515
2003-10-01 07:29:27 +00:00
Nicolas Bacca
6c94765972 Improve intro timing a tiny bit on WinCE
svn-id: r10472
2003-09-28 22:23:59 +00:00
Jamieson Christian
a7dfe35706 Fix for Bug [805923] BASS: Notes left on when quitting game
Explicitly send All Notes Off messages on every
channel when shutting down music driver. This
fixes hanging notes on exit when using external
synths or some less intelligent internal synths.

svn-id: r10398
2003-09-24 09:32:38 +00:00
Torbjörn Andersson
570e60a487 Whitespace changes
svn-id: r10390
2003-09-24 06:33:59 +00:00
Max Horn
34b5cd99c3 fixed warning on systems with 64bit pointers
svn-id: r10317
2003-09-19 21:15:13 +00:00
Max Horn
6a4663824e added initial support for building our 4 adventure engines as loadable modules; right now only work on OS X; once we add more build rules, other systems with dlopen() should work, too (e.g. Linux); Windows support may come later. This is still very much WIP
svn-id: r10304
2003-09-18 18:23:53 +00:00
Max Horn
7fd732f5bb cleanup
svn-id: r10301
2003-09-18 18:19:23 +00:00
Max Horn
9470c9f661 changed & documented the premixer semantics
svn-id: r10294
2003-09-18 16:01:33 +00:00
Max Horn
a15fdcea21 plugin work: right now, only with build rules for OS X. Once I can get it to work here, I'll add more build rules. Work in progress, a lot ain't work, but the plugin stuff is disabled by default, so no harm should arise
svn-id: r10292
2003-09-18 13:03:56 +00:00
Max Horn
be9d4066e1 moved engine.* to base; this fixes some linking issues when building a barebone ScummVM (or maybe I just want to increase our CVS stats? <g>)
svn-id: r10287
2003-09-18 02:07:18 +00:00
Max Horn
c1a678afeb new module 'base'; moved gameDetector.*, main.cpp and base/plugins.* there (this removes the need for an ugly hack in the build system, and is also conceptionally cleaner)
svn-id: r10282
2003-09-17 22:41:01 +00:00
Max Horn
231cb16b5b some tweaks to the build system (work toward plugin support)
svn-id: r10279
2003-09-17 21:53:13 +00:00
Max Horn
468275bb94 added a static method setDefaultDirectory to class File; used this to simplify some code; added a global g_sound pointer in bs2, this cuts down on uses of g_sword2 (of course both should be removed on the long run); some other minor tweaks/fixes
svn-id: r10278
2003-09-17 21:06:16 +00:00
Joost Peters
d517558b10 proper fix for bug #791207
svn-id: r10202
2003-09-13 01:45:12 +00:00
Joost Peters
befc7ed3db workaround for bug #791207
svn-id: r10200
2003-09-13 01:08:45 +00:00
Max Horn
080128d748 removed superfluous #include
svn-id: r10157
2003-09-10 12:45:42 +00:00
Max Horn
afe56a4aeb added refCon parameter to timer class
svn-id: r10156
2003-09-10 12:43:54 +00:00
Max Horn
65a6bcb90b moved declaration of error/warning/debug from engine.h to util.h
svn-id: r10154
2003-09-10 12:40:41 +00:00
Travis Howell
c832c55f90 Fxo sky module compile
svn-id: r10153
2003-09-10 12:35:29 +00:00
Robert Göffringmann
083be33f1a fix sfx routine
svn-id: r10120
2003-09-09 06:37:01 +00:00
Max Horn
f23a34c9e5 renamed VersionSettings -> TargetSettings and also renamed some of its members; added GameDetector::findTarget; made launcher use that new method; some initial preparations for Plugin code
svn-id: r10092
2003-09-08 15:38:34 +00:00
Travis Howell
ffe7cd3feb Actually make these game version message shown by default, so users can better report bugs.
svn-id: r10037
2003-09-06 03:48:08 +00:00
Max Horn
3aa8454efa moved the sound ID param in playRaw before volume/pan
svn-id: r10023
2003-09-05 22:09:56 +00:00
Max Horn
11193b0746 cleaned up sound/mixer.h a bit; renamed some mixer methods for consistency
svn-id: r10018
2003-09-05 20:48:32 +00:00
Paweł Kołodziejski
5a6bce590b changed sounds volume to original volume level, and fixed sounds in bass intro
svn-id: r9963
2003-09-02 07:49:40 +00:00
Paweł Kołodziejski
2533b23a60 added mixer features: volume and pan control per channel
svn-id: r9944
2003-08-31 20:26:21 +00:00
Jonathan Gray
ce42f4d3dd patch #791738 g++ 3.4 compile fix, from Falk Hueffner and a few minor local bits in my tree
svn-id: r9807
2003-08-21 13:39:21 +00:00
Robert Göffringmann
af17c1ac51 copied some fixes which only were in 0.5.1 branch.
svn-id: r9799
2003-08-20 12:12:11 +00:00
Robert Göffringmann
e7fb69e3d9 added MDT_PREFER_NATIVE flag to BASS VersionSettings
svn-id: r9772
2003-08-18 23:20:27 +00:00
Robert Göffringmann
cc7700f01d fix sfx restart after restoring a savegame
svn-id: r9770
2003-08-18 20:36:55 +00:00
Torbjörn Andersson
2e38b49d27 Replaced printf()s with debug() and warning().
svn-id: r9710
2003-08-15 15:17:02 +00:00
Jamieson Christian
e1bc6493d8 Replaced ADLIB_ALWAYS and ADLIB_PREFERRED with a more flexible
list of music types supported. This was done because now
PC speaker support must be treated separately, along with
Adlib and native (GM/MT32) support.

This fixes a problem with games that don't support PC speaker
(including V5 games that don't parse SPK resources yet)
being run with -epcspk or -epcjr. Those games now properly
switch to -enull so that music resources still get parsed
and music/script synchronization mechanisms don't break.

svn-id: r9703
2003-08-15 10:19:24 +00:00
Torbjörn Andersson
a02fe9e46e I didn't realize it at first, but LINC-space uses the same character data
as the LINC terminals, so our patched characters looked very out of place
since they didn't have the black outline the other characters had.

I've fixed that, and tweaked the character data for "�" slightly.

svn-id: r9657
2003-08-13 15:29:44 +00:00