Max Horn
9b160804ab
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
...
svn-id: r34700
2008-09-30 12:27:38 +00:00
Torbjörn Andersson
3779fc2170
Slight simplification of last commit.
...
svn-id: r34658
2008-09-27 17:51:22 +00:00
Torbjörn Andersson
46a5320f0d
Allow quitting or returning to the launcher while cutscenes are playing.
...
svn-id: r34657
2008-09-27 17:47:22 +00:00
Torbjörn Andersson
7644ff05f9
Fixed typos.
...
svn-id: r34656
2008-09-27 17:25:40 +00:00
Max Horn
655ce26b3f
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
...
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
2bc093828f
Replaced Engine::_gameDataPath (a String) by Engine::_gameDataDir (an FSNode); adapted code to that (by using getChild() to get subdirs, not string concatenation
...
svn-id: r34434
2008-09-07 22:10:58 +00:00
Max Horn
57e724bfc3
Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; added a new alternate SeekableReadStream::readLine() instead
...
svn-id: r34315
2008-09-03 17:53:25 +00:00
Max Horn
d3642080de
Moved check for shouldRTL() from engines to scummvm_main
...
svn-id: r34310
2008-09-03 16:56:40 +00:00
Max Horn
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Filippos Karapetis
3d8e7580a0
Silence MSVC warning about empty switch statement
...
svn-id: r34265
2008-09-01 23:36:59 +00:00
Christopher Page
ec8dac5540
Added a MetaEngineFeature for RTL support, the RTL button is disabled in the GMM if the engine doesn't support it
...
svn-id: r33921
2008-08-16 02:53:16 +00:00
Christopher Page
dca5f7dc20
If the last savegame is deleted, reset save_slot in config man to -1
...
svn-id: r33918
2008-08-15 21:25:24 +00:00
Christopher Page
603f0a2f8c
Fixes for Sword1 engine loading from launcher
...
svn-id: r33915
2008-08-15 20:49:56 +00:00
Christopher Page
9d3cdcb2da
Defined some MetaEngineFeatures for the engines, the launcher uses these features to allow/disallow loading and deleting saves
...
svn-id: r33909
2008-08-15 18:15:14 +00:00
Christopher Page
4198ee9623
Merged revisions 33188-33189,33191-33193,33196,33198,33202-33203,33206,33210,33212,33218-33220,33222,33224-33226,33229-33243,33246,33248-33250,33252,33258-33261,33263,33266,33270,33272-33283,33285,33287-33290,33295-33298,33321,33325-33330,33332-33335,33337-33340,33342,33345,33347,33349-33350,33352-33357,33359-33367,33369-33371,33373,33375-33377,33379-33380,33383-33385,33387-33389,33392-33394,33400-33402,33404-33405,33407-33410,33412-33416,33418-33419,33425-33427,33432,33436-33438,33444,33446,33452-33453,33455-33459,33463-33464,33466-33471,33473-33474,33478,33490,33492,33495-33496,33509-33512,33518-33519,33522-33527,33529-33530,33537,33541,33544,33546,33550,33552-33554,33556,33558,33561-33562,33565,33568,33570,33574,33576,33578-33581,33584-33587,33590,33596,33604-33611,33614-33615,33617-33618,33620-33621 via svnmerge from
...
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk
svn-id: r33624
2008-08-04 22:34:07 +00:00
Max Horn
0be985ce83
Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
...
svn-id: r33412
2008-07-29 16:09:10 +00:00
Christopher Page
b0e0896579
Added --list-saves support for SWORD1
...
svn-id: r33395
2008-07-29 04:51:23 +00:00
Christopher Page
437b9ee281
More work with SWORD1 sound settings
...
svn-id: r33091
2008-07-17 20:08:59 +00:00
Christopher Page
41d896dc2f
SWORD1 Sound settings work with the GMM
...
svn-id: r33090
2008-07-17 17:49:38 +00:00
Christopher Page
0175425109
Overlooked something in SWORD1, works now
...
svn-id: r33045
2008-07-13 22:08:58 +00:00
Christopher Page
e7d7f8df95
SWORD1 works with the new GMM implementation
...
svn-id: r33043
2008-07-13 21:54:23 +00:00
Eugene Sandulenko
37563ff3ae
Fix bug #1981402 : "BS1: grammatical error in the Italian menu"
...
svn-id: r32471
2008-06-01 18:37:35 +00:00
Jordi Vilalta Prat
38a8aa516e
Allow static and dynamic plugins to be used at the same time
...
svn-id: r31888
2008-05-06 03:00:26 +00:00
Max Horn
88bb567e18
Merged lots of _mixer->isReady() warnings into a single one in Engine constructor
...
svn-id: r30871
2008-02-15 17:01:35 +00:00
Jordi Vilalta Prat
c103290e2b
Initial support for plugin types
...
svn-id: r30825
2008-02-08 00:02:23 +00:00
Max Horn
8a73356a2d
Revised Engine plugin API to only provide a single func which returns a MetaEngine instance. Used this to simplify the rest of the plugin system
...
svn-id: r30780
2008-02-03 18:56:47 +00:00
Torbjörn Andersson
e51bf80218
Changed "COMPATIBLITY" to "COMPATIBILITY".
...
svn-id: r30754
2008-02-03 10:15:36 +00:00
Max Horn
dc979b03cf
New MetaEngine class (work in progress to replace the current Engine plugin API with a more object oriented approach)
...
svn-id: r30726
2008-02-02 00:54:52 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Torbjörn Andersson
7b15433572
Removed unnecessary semi-colons.
...
svn-id: r30476
2008-01-13 22:12:35 +00:00
Paul Gilbert
6eb64102a4
Fix to remove a tab character from the GPL header
...
svn-id: r30238
2008-01-05 12:45:14 +00:00
Torbjörn Andersson
3451d1c30f
Applied my alternative patch for feature request #1266599 ("BS1: Invert stereo
...
channels for traffic sounds in Rue Jarry"). Now let's see if it breaks any
other scenes. :-)
svn-id: r30220
2008-01-04 18:46:08 +00:00
Eugene Sandulenko
23313cb82e
Patch #1733017 : "SWORD1: Possible patch for bug #1730183 "
...
svn-id: r30124
2008-01-01 16:42:05 +00:00
Eugene Sandulenko
d4d072fe04
Patch #1857121 : Refactoring of the getSavePath method
...
svn-id: r30032
2007-12-28 07:37:04 +00:00
Max Horn
a556368c99
Update mouse coordinates onn *all* mouse events, i.e. also after click events
...
svn-id: r29657
2007-11-28 15:00:41 +00:00
Travis Howell
9aa0a47846
Revert patch #1709219 - DXA Player: double size scaling option.
...
svn-id: r29351
2007-11-01 06:00:16 +00:00
Eugene Sandulenko
3318c4b474
Slighly modified patch #1709219 : "DXA Player: double size scaling option"
...
svn-id: r29347
2007-10-31 21:37:40 +00:00
Eugene Sandulenko
77eea722af
Modified patch #1738058 : "Action recorder".
...
svn-id: r28968
2007-09-19 13:55:05 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
c3d3aebe87
Patch #1768757 : Merge fsnode-gsoc into trunk (MAJOR change, will break compilation on some ports)
...
svn-id: r28944
2007-09-18 20:02:04 +00:00
Max Horn
4a302b25ad
Lots of source code formatting corrections
...
svn-id: r28887
2007-09-10 13:17:20 +00:00
Chris Apers
500481c4ec
Cleanup: remove obsolete code (PalmOS 68K version not supported anymore)
...
svn-id: r28803
2007-09-01 19:13:04 +00:00
David Corrales
6856535010
Merged fsnode with trunk: r27971:28460
...
svn-id: r28462
2007-08-05 19:34:20 +00:00
Max Horn
86d015c055
Added FIXME comments regarding use of AudioStream::openStreamFile
...
svn-id: r28112
2007-07-15 19:26:00 +00:00
Max Horn
f4c0b853cc
Fixed sound factory messup caused by my previous commit
...
svn-id: r28111
2007-07-15 19:24:00 +00:00
David Corrales
9bfe5d5354
Merged the FSNode branch with trunk r27681:27969
...
svn-id: r27970
2007-07-08 16:58:54 +00:00
Max Horn
e1bcd70436
Re-added __attribute__(packed)
...
svn-id: r27830
2007-07-01 18:18:43 +00:00
Max Horn
e2ad271bd8
Removing non-ASCII chars from source code
...
svn-id: r27818
2007-07-01 12:47:07 +00:00
Travis Howell
2e3ce7dc8e
Fix FLAC support for speech in Broken Sword 1.
...
svn-id: r27723
2007-06-26 05:51:47 +00:00
Travis Howell
9cee28492d
Add FLAC support for speech in Broken Sword 1.
...
svn-id: r27721
2007-06-26 03:08:03 +00:00
David Corrales
cacd7a28fd
Merged the FSNode branch with trunk r27031:27680
...
svn-id: r27681
2007-06-23 18:51:33 +00:00
Max Horn
d0ee1b3c8f
BS1: Make use of Common::KeySate::reset()
...
svn-id: r27636
2007-06-22 22:19:17 +00:00
Max Horn
1441f0d044
Converted rest of BS1 to use Common::KeyState (removing two more hacks)
...
svn-id: r27631
2007-06-22 22:00:46 +00:00
Max Horn
c9030e4653
Made BS1 track the full KeyState upon KEYDOWN events (this makes it possible to remove to workaround for Mac keyboards)
...
svn-id: r27627
2007-06-22 21:34:03 +00:00
Max Horn
2fa0a5c457
Cleaning up after myself (I blame it on, err, uhh... the Vogons?)
...
svn-id: r27625
2007-06-22 21:16:07 +00:00
Torbjörn Andersson
e42da8f24c
Use KEYCODE constants.
...
svn-id: r27600
2007-06-22 09:27:13 +00:00
Torbjörn Andersson
2a7c76d4e4
Added support for FLAC encoded music in Broken Sword 1. (The compression tool
...
knows nothing about this, and since they're being rewritten as part of the SoC,
I'm not going to do anything about that.)
svn-id: r27511
2007-06-17 14:50:49 +00:00
Torbjörn Andersson
fe8a7163cd
Try to be more robust/paranoid when reading the SAVEGAME.INF file. Apart from
...
being a sensible precaution, it should work around some bugs like #1737801 ,
where the file is obviously corrupted. (Possibly mutilated by some file
transfer program.)
svn-id: r27484
2007-06-16 19:27:05 +00:00
Travis Howell
12c9fb0382
Add support for pausing/resume cutscenes shown on the OmniTV in The Feeble Files.
...
svn-id: r27371
2007-06-12 06:08:47 +00:00
David Corrales
3b96c7fad5
Renamed methods in the FilesystemNode class to match the AbstractFSNode implementations.
...
Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode.
svn-id: r27113
2007-06-05 21:02:35 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Eugene Sandulenko
cc24af3671
Fix Enter key behavior under MacOS as mentioned in FR #1273746 : "BS1: Some
...
smaller refinements to the GUI"
svn-id: r26946
2007-05-26 17:08:33 +00:00
Eugene Sandulenko
cdc949439b
oops
...
svn-id: r26944
2007-05-26 16:59:13 +00:00
Eugene Sandulenko
83c713d9b4
Slighty modified patch #1701058 : "Correct some graphical glitches for
...
Brocken Sword 1 Mac"
svn-id: r26942
2007-05-26 16:17:31 +00:00
Torbjörn Andersson
c750bea0dd
Fixed error in subtitle drawing. (This part of the code should still be cleaned
...
up, as it's badly written. I should know, I wrote it.)
svn-id: r26877
2007-05-19 20:44:18 +00:00
Torbjörn Andersson
e005b0f42e
This is an updated and slightly cleaned up version of patch #1657061 ("SWORD1:
...
Cutscene subtitles"). It still has the deficiencies listen in the patch tracker
and should therefore be considered work-in-progress, but sev said I should go
ahead and commit it anyway. I have no further plans for it right now, so feel
free to improve on it.
svn-id: r26644
2007-04-28 07:27:53 +00:00
Max Horn
00b9bc7b36
Removing lots of superfluous semicola (see mail by David Weinehall on scummvm-devel)
...
svn-id: r26594
2007-04-25 19:31:23 +00:00
Torbjörn Andersson
4b4d7dec8e
I must have accidentally broken frame skipping when I added DXA playback. Made
...
frame skipping actually skip the updateScreen() call.
svn-id: r26469
2007-04-14 14:07:11 +00:00
Torbjörn Andersson
333bac56c3
Added base class for the WAV and AIFF audio streams. It's the *Macintosh* demo
...
(and presumably the full game, as well) that uses AIFF music. My earlier commit
was a bit unclear about that.
svn-id: r26437
2007-04-09 15:50:20 +00:00
Torbjörn Andersson
a4fb87b987
Fixed crash when playing looping WAV music.
...
svn-id: r26425
2007-04-09 10:07:36 +00:00
Torbjörn Andersson
2d209264c9
Implemented enough of AIFF to play the music from the Broken Sword 1 demo. At
...
least as far as I tried it which, admittedly, wasn't very far.
svn-id: r26423
2007-04-09 09:58:41 +00:00
Max Horn
1cf48cf17d
Changed _sys -> _system, matching (almost?) all other cases where we have an OSystem* member var
...
svn-id: r26359
2007-04-01 18:05:11 +00:00
Gregory Montoir
5aca9dce8c
added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.
...
svn-id: r26357
2007-04-01 17:36:13 +00:00
Robert Göffringmann
edd4e73787
minor cleanup
...
svn-id: r26212
2007-03-18 16:50:39 +00:00
Max Horn
ed54ea9155
Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
...
svn-id: r26180
2007-03-17 19:02:05 +00:00
Torbjörn Andersson
53624376b4
Applied my re-revised patch #1487149 ("Simplified keyboard repeat"), with
...
Fingolfin's blessings. Keyboard repeat is now handled by the event manager,
rather than by individual engines.
Since this can cause problems with some engines (see the AGI engine), the extra
"key down" events are marked as "synthetic", so that they can be ignored if
necessary.
svn-id: r26170
2007-03-17 15:44:26 +00:00
Max Horn
15d9bc42ea
Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
...
svn-id: r26156
2007-03-17 00:53:21 +00:00
Max Horn
d6211151a9
Removed obsolete code
...
svn-id: r25946
2007-03-03 00:17:26 +00:00
Max Horn
4a1039fbc6
Updated the BS1 music code to use the new looping feature in our MP3/Ogg decoders
...
svn-id: r25943
2007-03-02 23:53:20 +00:00
Max Horn
45bf574928
Get rid of the last two usages of File::incRef/decRef
...
svn-id: r25919
2007-03-01 17:22:30 +00:00
Max Horn
8c8abca6f8
Changed the AppendableAudioStream code to use a queue of buffers, instead of a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible)
...
svn-id: r25909
2007-02-28 14:48:26 +00:00
Max Horn
551b2b6b3d
Fix for bug #1670081 -- SWORD1: game won't load (ogg compression) (regression)
...
svn-id: r25905
2007-02-28 10:44:52 +00:00
Max Horn
dd26444b72
oops
...
svn-id: r25842
2007-02-25 00:09:22 +00:00
Max Horn
9823cbe1ea
Added TODO: Sword1's MusicHandle::play etc. should be rewritten to take advantage of the enhanced compressed audio stream code
...
svn-id: r25841
2007-02-25 00:04:35 +00:00
Max Horn
21b095ce20
Switch to the new makeVorbisStream variant (and get rid of a File::decRef call)
...
svn-id: r25840
2007-02-25 00:03:47 +00:00
Max Horn
b3931a847d
Trying to unify the order in which we try the various audio formats: Prefer FLAC (lossless) over Ogg Vorbis ('free') over MP3 -- the order is admittedly somewhat arbitrary, but at least now it's consistent across all parts of ScummVM
...
svn-id: r25837
2007-02-24 23:40:28 +00:00
Max Horn
cafe61fec2
cleanup
...
svn-id: r25834
2007-02-24 23:15:39 +00:00
Max Horn
227a080e5b
Patch #1663933 (Kill premix channel) with a few tiny additional tweaks by me
...
svn-id: r25752
2007-02-20 18:50:17 +00:00
Torbjörn Andersson
5478589937
Last batch of header consistency fixes. At least for the game engines.
...
svn-id: r25751
2007-02-20 18:04:13 +00:00
Max Horn
b8aeefaffb
Added finalize() method to Common::OutSaveFile (which by default just flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing)
...
svn-id: r25660
2007-02-17 18:55:51 +00:00
Max Horn
73c3625f1f
Fixing various doxygen warnings
...
svn-id: r25362
2007-02-03 21:37:52 +00:00
Max Horn
cb49cbdd45
* Reimplemented Mixer::pauseAll to simply invoke pause on all channels
...
(implying change of semantics)
* Reordered the params of Mixer::playRaw (the SoundType now comes first, not last)
* Removed Mixer::isPaused
* Removed Mixer::getSoundElapsedTimeOfSoundID
* Added some doxygen comments to the Mixer
svn-id: r25356
2007-02-03 19:05:53 +00:00
Eugene Sandulenko
cd8a5f3a98
First phase of detection-related plugins interface improvements. Now plugins
...
return StringMap instead of fixed list of parameters. This adds great
flexibility.
Current patch should not alter any functionality, i.e. if there are regressions,
submit a report. Phase 2 will benefit from these changes and will come later.
svn-id: r25134
2007-01-20 21:27:57 +00:00
Travis Howell
0141cbd1df
GF_DEMO is only required by the PC version of Broken Sword 1 demo
...
svn-id: r24853
2006-12-15 00:59:11 +00:00
Eugene Sandulenko
3244d20ee2
Add proper detection of BS1 Mac demo. Game crashes at attempt to play speech.
...
svn-id: r24851
2006-12-14 21:23:24 +00:00
Torbjörn Andersson
45886ec8ed
When drawing an interlaced frame, only clear every other line instead of the
...
entire buffer.
Introduced a _drawBuffer pointer which points either to _scaledBuffer or
_frameBuffer1. That way, we don't need to copy _frameBuffer1 every time we
draw an unscaled frame. (Probably the most common case by far.)
Adjusted the Broken Sword 1 DXA player for the second change. (It sneakily
avoids copying each frame by using _drawBuffer directly.)
svn-id: r24846
2006-12-14 05:21:19 +00:00
Travis Howell
1ba6947440
Adjust DXA scaling code for Broken Sword 1
...
svn-id: r24841
2006-12-11 09:26:54 +00:00
Eugene Sandulenko
3e6414a55f
Slighty modified Patch #1571787 : "Support for Mac Broken Sword 1". sword1macdemo
...
target was commented out until existence of the demo is confirmed.
svn-id: r24697
2006-11-12 19:05:51 +00:00
Max Horn
4c14cf6d1a
Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
...
svn-id: r23974
2006-09-23 00:42:35 +00:00
Torbjörn Andersson
3e8380f2c6
Only decompress the number of speech samples indicated by 'resSize'. This
...
prevents crashes in the demo, and is probably a good idea anyway.
svn-id: r23917
2006-09-17 15:25:59 +00:00
Max Horn
a2dc897fe5
Reduce code duplication
...
svn-id: r23888
2006-09-16 15:01:14 +00:00
Chris Apers
f34da528eb
Fixed unaligned read (this fix a potential crash clicking on the Text option button)
...
svn-id: r23845
2006-09-09 13:57:20 +00:00
Torbjörn Andersson
3ce0b182f6
Initialise variable. Should fix Valgrind warning.
...
svn-id: r23838
2006-09-09 09:50:00 +00:00
Chris Apers
7efd027fed
Fixed crashes on Zodiac and add support for this device
...
svn-id: r23837
2006-09-09 09:30:16 +00:00
Torbjörn Andersson
49d1056c30
Only clear the part of the screen usually controlled by the Screen class. The
...
buffer might not be large enough to cover the menu areas, and they will
probably be clear already.
Only terminate the loop, not the entire function, when pressing Esc during a
cutscene. Otherwise, there may be palette glitches.
svn-id: r23790
2006-08-28 04:53:21 +00:00
Torbjörn Andersson
72e01a3aa3
Forgot to close the DXA file.
...
svn-id: r23775
2006-08-27 10:40:09 +00:00
Torbjörn Andersson
8ae050ff08
Renamed graphics/animation.[cpp|h] to graphics/mpeg_player.[cpp|h] to be more
...
consistent with dxa_player.[cpp|h]. (Though actually, "decoder" might be more
accurate...)
svn-id: r23774
2006-08-27 09:10:24 +00:00
Torbjörn Andersson
cc3b4cdf99
Now that the cutscene handling in both BS1 and BS2 has been extended to play
...
DXA movies (the MPEG movies still work, of course), there is no longer any need
for the MPEG decoder to handle sound and frame syncing. That is now the
responsibility of the player, not the decoder.
The obvious next step, then, would be to put that in a new player class, and
have both BS1 and BS2 use that. Maybe FF as well.
svn-id: r23757
2006-08-26 12:29:00 +00:00
Torbjörn Andersson
ca387f1585
Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCA
...
player does not support the (unreleased) multi-lingual cutscene pack, since I
don't have one to test with.
It needs to be cleaned up a bit, but the next step will be to clean up the MPEG
decoder first.
svn-id: r23753
2006-08-26 11:34:35 +00:00
Max Horn
4a80db4c7b
* Added copyright string to all engine plugins
...
* Modified about dialog to list all available plugins with their resp. copyright
* Modified about dialog credits to show the GPL last (like movie end credits do with their legal text, too)
svn-id: r23645
2006-07-31 13:41:21 +00:00
Torbjörn Andersson
c32076e5d0
Use #include "..." instead of #include <...> for pack-start.h and pack-end.h
...
for consistency with other #includes.
svn-id: r23585
2006-07-23 16:13:26 +00:00
Max Horn
2859b64702
Fix struct packing issues (macros are not resolve in #pragma params, at least for GCC)
...
svn-id: r23569
2006-07-22 17:28:48 +00:00
Johannes Schickel
412db86dcf
Using FilesystemNode::name instead of FilesystemNode::displayName in the sword1 detector code too.
...
svn-id: r23556
2006-07-22 14:37:52 +00:00
Max Horn
f59cf1fcdc
Removing GCC_PACK, we fully rely on START_PACK_STRUCTS / END_PACK_STRUCTS now (hiya eriktorbjorn, this one is for you *ggg*)
...
svn-id: r23547
2006-07-21 21:25:17 +00:00
Max Horn
f35f4a4d1c
Use START_PACK_STRUCTS / END_PACK_STRUCTS when available, instead of checking for GCC / not GCC
...
svn-id: r23458
2006-07-09 13:01:15 +00:00
Max Horn
9a955180a4
* Renamed config.mak to config.mk
...
* 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-24 08:48:11 +00:00
Max Horn
d210b19aec
Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cpp
...
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-24 08:07:48 +00:00
Torbjörn Andersson
1569d5fadc
Cleanup.
...
svn-id: r23194
2006-06-20 18:08:03 +00:00
Torbjörn Andersson
8062eb6ec3
Set and show/hide mouse cursors through a "cursor manager" (analogous to the
...
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-25 22:51:42 +00:00
Torbjörn Andersson
5f113b2dc2
Setting a "null" cursor like this doesn't do anything in the SDL backend, and
...
could possibly be undefined in other backends. So it should be safe to remove.
svn-id: r22636
2006-05-25 20:50:32 +00:00
Torbjörn Andersson
e563d0c182
Renamed screenChanged() to handleScreenChanged().
...
svn-id: r22518
2006-05-18 13:58:33 +00:00
Torbjörn Andersson
5c1f91eed4
Allow changing scaler while playing MPEG cutscenes.
...
svn-id: r22515
2006-05-18 13:18:02 +00:00
Eugene Sandulenko
14ec3f45fa
- Heavily modified patch #1214784 : "Disable overlay scaling"
...
- 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-17 23:52:45 +00:00
Max Horn
d016c353c5
Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
...
svn-id: r22315
2006-05-03 20:43:26 +00:00
Max Horn
58c723d9f0
Use FilesystemNode, never AbstractFilesystemNode (which is for internal use only)
...
svn-id: r22296
2006-05-03 10:12:42 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00
Max Horn
bf73598811
* Changed the createEngine() factory function of our plugins to return an 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-29 00:27:20 +00:00
Torbjörn Andersson
8740bc0134
Fixed silly bug in --save-slot handling: Don't try to restore a savegame unless
...
the specified save slot is > 0. (The default value is -1, which shouldn't be
restored either.)
I thought I had fixed that already, but I guess I made a last-minute change...
svn-id: r22069
2006-04-21 10:24:22 +00:00
Torbjörn Andersson
6b034b66d8
Added support for the --save-slot option for Broken Sword 1. (Feature request
...
#1460977.)
svn-id: r22009
2006-04-18 18:23:57 +00:00
Torbjörn Andersson
e22f1c64c5
Call updateScreen() from delay functions for smoother mouse cursor movement.
...
svn-id: r21996
2006-04-18 00:20:07 +00:00
Max Horn
68cb7f52c8
- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a 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-15 20:36:41 +00:00
Max Horn
ad45318328
Removed GameDetector::_gameid in favor of using a config manager entry
...
svn-id: r21915
2006-04-15 17:39:14 +00:00
Max Horn
e7a8bb6abf
Modified the REGISTER_PLUGIN macro so that it allows (and requires) a trailing semicolon (this helps certain tools to parse our code better)
...
svn-id: r21689
2006-04-08 12:06:07 +00:00
Eugene Sandulenko
8fa9bd6728
Removed extra exclamation marks in warning() calls as well.
...
svn-id: r21608
2006-04-04 22:21:10 +00:00
Max Horn
0bb6d64064
A lot of code in sword1/router.cpp and sword2/router.cpp is virtually 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-04-01 12:47:09 +00:00
Max Horn
8cdee5a931
Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
...
svn-id: r21500
2006-03-29 15:59:37 +00:00
Max Horn
86565fcca5
- Renamed GameSettings to PlainGameDescriptor
...
- 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 02:52:51 +00:00
Max Horn
907bd7128d
Fix for bug #1438822 (Targets are case sensitive)
...
svn-id: r21017
2006-03-02 22:29:01 +00:00
Torbjörn Andersson
c5cf806f82
Removed the "extra bars/nodes" code, since nothing ever added the extra bars or
...
nodes.
Removed the path-plotting debugging code, since the line-drawing function has
been a stub for the past few years, as far as I can tell.
Similar code was removed from the BS2 router long ago, so this could be a first
tiny step towards bringing them together.
svn-id: r20805
2006-02-21 10:22:37 +00:00
Max Horn
0712b468a3
Fix for bug #1428261 (Solaris x86 build fails: variable name collision)
...
svn-id: r20787
2006-02-20 14:18:30 +00:00
Max Horn
01fc7034b5
- Merged GameDetector::detectGame() into GameDetector::detectMain()
...
- Replaced GameSettings GameDetector::_game by a simple gameid string
svn-id: r20753
2006-02-18 12:50:48 +00:00
Max Horn
8ac17430ac
- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistency
...
- 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 11:15:37 +00:00
Max Horn
81798556db
- Removed the 'features' field from GameSettings
...
- Removed GF_DEFAULT_TO_1X_SCALER
svn-id: r20747
2006-02-18 00:12:36 +00:00
Max Horn
a96760a2fd
Reduced use of GF_DEFAULT_TO_1X_SCALER in favor of a new param to Engine::initCommonGFX; added a TODO stating that it should eventually be removed completly
...
svn-id: r20738
2006-02-17 00:01:18 +00:00
Max Horn
80cf2fa46f
Reduced data duplication in module.mk files; added module.mk files for null and x11 backends; added engines/module.mk
...
svn-id: r20584
2006-02-12 00:16:31 +00:00
Max Horn
26ee630756
Moved engines to the new engines/ directory
...
svn-id: r20582
2006-02-11 22:45:04 +00:00