Max Horn
577b04aaad
Fix compilation with mpeg2 disabled
...
svn-id: r16680
2005-01-28 22:10:56 +00:00
Max Horn
abd12dd1b6
Use class Mutex instead of MutexRef
...
svn-id: r16679
2005-01-28 22:05:51 +00:00
Torbjörn Andersson
c0a3816e17
Began what I hope is the final major restructuring of the BS2 engine.
...
In this first step, I have moved all opcode functions into functions.cpp,
instead of having them scattered all over the place.
To get things to compile again, I had to rewrite the overly complicated
sound effects handling. It's much simpler now.
The next step will be to move any non-trivial code out of the opcode
functions and into the appropriate object. This, I hope, will make it
easier to create well-separated objects, instead of the current mess.
I also want to tear down the artificial boundary between the main directory
and the "driver" directory. We already have a cross-platform layer; there's
no need to have yet another one. (Actually, the rewriting of the sound
effects code took one first step in this direction.)
At the final stage, I'd like to get rid of the "drivers" directory
completely, but I'll probably need some help with that if I want to
preserve the CVS history of the code.
Things will probably be a bit bumpy along the way, but I seem to have
reached a point of relative stability again, which is why I'm commiting
this now.
svn-id: r16668
2005-01-28 16:33:14 +00:00
Torbjörn Andersson
3623ca4637
Corrected the comment: the savegame filename does not include the path at
...
this stage. (So 128 characters is probably excessive, even if the SCUMM
engine uses 256.)
svn-id: r16634
2005-01-25 07:55:09 +00:00
Torbjörn Andersson
b86423f898
Added a "value step" parameter to the Slider widget class so that clicking
...
beside the slider handle can move it more than one step. (When the volume
range was 0-14 or 0-16 this wasn't needed, but now it's 0-255.)
svn-id: r16633
2005-01-25 07:27:14 +00:00
Torbjörn Andersson
ca58bfed3b
Fixed bug that I must have introduced during one of my cleanups. The
...
original code read "LLogic.Logic_up( (*params*65536)+2);".
I don't know where this opcode is actually used, though.
svn-id: r16600
2005-01-20 07:32:37 +00:00
Torbjörn Andersson
0b461c8506
Updated copyright header, as discussed on the mailing list.
...
svn-id: r16580
2005-01-17 10:57:15 +00:00
Torbjörn Andersson
4dda4eb31b
On Fingolfin's suggestion I put back the inclusion of util.h into Rect, for
...
MIN() and MAX(). I then removed util.h from a bunch of files which I don't
think need it any more. (Please let me know if I got too blood-thirsty!)
This reverts some of the changes I made this morning.
svn-id: r16541
2005-01-11 13:25:02 +00:00
Torbjörn Andersson
c5e83de099
Use Fingolfin's new WAV code.
...
svn-id: r16540
2005-01-11 08:32:10 +00:00
Torbjörn Andersson
13e2c224c8
This is probably not the optimal fix, but at least ScummVM compiles again.
...
svn-id: r16538
2005-01-11 08:06:19 +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
7df70de2b1
Mark some places which probably should use loadWAVFromStream(); maybe some of the engine maintainers can look into using it
...
svn-id: r16503
2005-01-09 15:57:38 +00:00
Torbjörn Andersson
b319c32226
Fixed typo (in comment)
...
svn-id: r16441
2005-01-06 12:30:24 +00:00
Torbjörn Andersson
6d966a6e17
Applied patch #1088948 , with minor modifications
...
svn-id: r16421
2005-01-04 15:31:30 +00:00
Torbjörn Andersson
5178822833
Updated copyright year.
...
svn-id: r16397
2005-01-01 15:10:22 +00:00
Max Horn
f9b1e4118c
Use the mixer to handle sound volumes
...
svn-id: r16349
2004-12-27 23:43:40 +00:00
Max Horn
d299f0601b
Reducing header dependencies a bit
...
svn-id: r16347
2004-12-27 22:08:20 +00:00
Torbjörn Andersson
29e367a063
Don't use pointers to int. We don't know what size an "int" is.
...
Also, failing the script checksum test is no longer a fatal error. There
has been a report that could mean there is a German version with incorrect
checksums. Whether or not this change will make it playable is an entirely
different matter, of course.
svn-id: r16341
2004-12-27 17:29:07 +00:00
Max Horn
1d44b0873f
Fix volume regression my previous checkin caused
...
svn-id: r16337
2004-12-27 16:23:21 +00:00
Max Horn
01fc7adffd
Use the same volume ranges as most of the rest of ScummVM (i.e. 0-255)
...
svn-id: r16333
2004-12-27 03:00:36 +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
Eugene Sandulenko
ae21c99bad
Added Russian narration message.
...
svn-id: r16227
2004-12-21 02:12:58 +00:00
Nicolas Bacca
876079be75
Fix dumb CE compiler
...
svn-id: r16026
2004-12-11 00:37:05 +00:00
Robert Göffringmann
0d7ab01640
Pass subdirectories to gamedetector functions
...
svn-id: r16002
2004-12-09 15:06:49 +00:00
Max Horn
f09293b22c
Clean up OSystem::Event
...
svn-id: r15990
2004-12-05 17:42:20 +00:00
Eugene Sandulenko
8f863b5d8f
Fix music volume
...
svn-id: r15960
2004-11-29 00:25:15 +00:00
Max Horn
10dd548b85
Changed parameter order of SoundMixer::playInputStream to match that of playRaw
...
svn-id: r15950
2004-11-28 23:02:28 +00:00
Max Horn
b78ac6a18b
Make use of our String class instead of juggling with char pointers; added File::exists method
...
svn-id: r15913
2004-11-27 15:09:53 +00:00
Max Horn
1a7ca2dc2a
AudioStream::read() has been removed quite some time ago, now making sure that change is reflected everywhere
...
svn-id: r15911
2004-11-27 13:54:09 +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
Max Horn
6df3e8dc6f
Spelling
...
svn-id: r15890
2004-11-26 00:18:48 +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
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
Torbjörn Andersson
7adc1f419f
Cleanup
...
svn-id: r15826
2004-11-16 09:15:25 +00:00
Torbjörn Andersson
38baf0a0d3
I think this is the kind of constructor/go changes _sev was talking about
...
in his mail to scummvm-devel. (Though "a discussed a while ago change"
sounds like sort of thing Robert Jordan writes whenever there is danger of
anything actually happening in any of his more recent books. Tantalizing,
yet non-informative. ;-)
It's still rather messy. I'll look into cleaning it up later.
svn-id: r15818
2004-11-15 08:22:16 +00:00
Torbjörn Andersson
0cfd573951
Cleanup
...
svn-id: r15810
2004-11-14 15:00:01 +00:00
Torbjörn Andersson
37833f9832
Fixed comment typo. It's the pyramid bug that's dreaded, not the pyramid
...
itself. :-)
svn-id: r15789
2004-11-11 15:30:02 +00:00
Max Horn
926cfc5bd2
Doxygen fixes
...
svn-id: r15701
2004-10-30 21:58:37 +00:00
Torbjörn Andersson
e31cd239bd
Use the same REDUCE_MEMORY_USAGE trick here as in scumm/intern.h
...
svn-id: r15612
2004-10-19 14:19:52 +00:00
Torbjörn Andersson
4d3913d1b2
Cleanup of the credits code. Use the new gets() function.
...
svn-id: r15609
2004-10-19 07:12:23 +00:00
Max Horn
365b9a1e27
Doxygen fix
...
svn-id: r15594
2004-10-17 19:39:46 +00:00
Torbjörn Andersson
372eeb54cb
Migration to the newer form of setupPremix().
...
svn-id: r15532
2004-10-12 17:03:07 +00:00
Torbjörn Andersson
eaccebd7fc
Cleanup
...
svn-id: r15526
2004-10-12 06:24:46 +00:00
Chris Apers
757f2fdcef
Prevent double slash in path
...
svn-id: r15473
2004-10-08 16:09:52 +00:00
Max Horn
ce8c99bf62
Rename remaining OSystem methods to match our coding guidelines
...
svn-id: r15332
2004-09-28 20:19:37 +00:00
Torbjörn Andersson
8f4a5ea3a5
Removed obsolete comment about floating/locked memory.
...
svn-id: r15297
2004-09-26 16:10:21 +00:00
Max Horn
61b7e2155a
Fix doxygen warnings
...
svn-id: r15277
2004-09-25 23:26:46 +00:00
Torbjörn Andersson
095035e9c7
Removed obsolete comment.
...
svn-id: r15193
2004-09-19 18:19:30 +00:00