Lars Skovlund
5b2071487f
SCI: Unbreak script loading on big-endian machines. Thanks to [md5] and wjp.
...
svn-id: r55025
2010-12-23 14:03:58 +00:00
Yotam Barnoy
ee2b1092ab
PLUGINS: switched plugin manager to inheritance rather than #defines
...
The reason for this was that I found issues where the wrong functions were called in EngineManager for single plugin operation. Rather than inserting more messy #defines, I preferred to change the PluginManager to use virtual functions, which also makes EngineManager simpler.
svn-id: r55024
2010-12-23 13:38:37 +00:00
Filippos Karapetis
401a8c355d
SCI: Some initial work on the sound of robot videos (doesn't work yet, seems to be a problem with the encoding of the customized SOL audio files in robot videos)
...
svn-id: r55023
2010-12-23 13:11:10 +00:00
Filippos Karapetis
f891323f1f
SCI: Fixed typo
...
svn-id: r55022
2010-12-23 12:54:47 +00:00
Yotam Barnoy
81dd62f3cb
PLUGINS: don't fully load each plugins at startup for single plugin method
...
The reason to load each plugin was to figure out if it's a sound or engine plugin. Since all our plugin files are currently engines, there's no reason to load every file. If we get dynamic sound plugins, it'd be a good idea to make a quick and easy way to know which kind of plugin it is (e.g. a prefix or suffix in the filename).
svn-id: r55021
2010-12-23 07:54:54 +00:00
Arnaud Boutonné
8cc28b218c
HUGO: Suppress two obsolete defines
...
svn-id: r55020
2010-12-22 23:11:41 +00:00
Arnaud Boutonné
18d3e58825
HUGO: Suppress some obsolete volume related variables
...
svn-id: r55019
2010-12-22 22:56:42 +00:00
Arnaud Boutonné
6d30449d5a
HUGO: Implement syncSoundSettings()
...
svn-id: r55018
2010-12-22 22:25:52 +00:00
Filippos Karapetis
8e26ae0f92
SCI: Fixed bug #3037618 - "PQ2 : Restoring in Scuba Van causes Parser Issues"
...
svn-id: r55017
2010-12-22 22:18:21 +00:00
David Turner
cc30fa378e
MOHAWK: Add Framework getVar() code to Myst Credits Stack Script Parser.
...
svn-id: r55016
2010-12-22 21:08:26 +00:00
David Turner
5e92b6049b
MOHAWK: Add Framework getVar() code to Myst D'ni Age Script Parser.
...
svn-id: r55015
2010-12-22 21:08:02 +00:00
Arnaud Boutonné
d9cc9d5800
HUGO: Replace function comments by doxygen comments
...
svn-id: r55014
2010-12-22 18:25:48 +00:00
Arnaud Boutonné
51e9cdb12c
HUGO: Fix little bug in sound player
...
Mute/unmute sound and music at the same time
svn-id: r55013
2010-12-22 17:51:07 +00:00
Yotam Barnoy
a79ccfed55
PLUGINS: replace all size_t's with uint32's and add #include <malloc.h> to memory manager
...
uint32 is all we need since we only handle ELF32 anyway.
svn-id: r55012
2010-12-22 15:33:46 +00:00
Johannes Schickel
0134ffd86e
PLUGINS: Only enable ELFMemoryManager when dynamic plugins and the ELF loader is enabled.
...
This should fix compilation on desktop systems, where for example memalign
is not present.
svn-id: r55011
2010-12-22 15:09:42 +00:00
Johannes Schickel
48ce90419f
PLUGINS: Fix ELFMemoryManager::pluginAllocate signature.
...
svn-id: r55010
2010-12-22 15:07:14 +00:00
Yotam Barnoy
6817d4b300
PLUGINS: add ELF memory manager to solve fragmentation
...
Following lordhoto's suggestion, I implemented a simple allocator that grabs the size of the biggest available plugin in memory. This is an elegant solution to the fragmentation problem, with the caveat that memory is wasted. As such, it's not suited for the DS, so I added a #define to disable it there.
svn-id: r55009
2010-12-22 14:48:51 +00:00
Johannes Schickel
c309bbde28
HUGO: Slight formatting fix.
...
svn-id: r55008
2010-12-22 14:23:22 +00:00
Filippos Karapetis
1d98bf484e
SCI: Also reset flags when resetting the video state
...
svn-id: r55007
2010-12-22 14:19:38 +00:00
Filippos Karapetis
f922c29002
SCI: Limit the speech/subtitle settings sync to SCI1.1 CD games only. Earlier
...
versions (like SCI1, e.g. KQ5CD and Jones CD) didn't have such settings
svn-id: r55006
2010-12-22 14:04:39 +00:00
Filippos Karapetis
a5db890260
SCI: Sync in-game speech/subtitle options with the ones from the ScummVM GUI.
...
- Obtain speech/subtitle options from the ScummVM GUI and set them in CD games.
- Also, set simultaneous speech and subtitles in games that support them
(currently SQ4 CD and Freddy Pharkas CD). There is no GUI option for setting
simultaneous speech and subtitles in Freddy Pharkas CD, so this is the only
current way of achieving this (unless the text speed slider inside the Freddy
Pharkas options window is repurposed - but that will require extensive changes)
svn-id: r55005
2010-12-22 13:58:28 +00:00
Filippos Karapetis
166f3f2dfd
SCI2+: Set pictureCels to 0 after deleting them
...
svn-id: r55004
2010-12-22 13:52:25 +00:00
Filippos Karapetis
430dc10c49
SCI: VMD video related changes
...
- VMD videos are now properly started from the associated play subop of the
kPlayVMD kernel call, and are now properly positioned on screen, and doubled
only if the games require them to be
- Added an enum for VMD video flags
svn-id: r55003
2010-12-22 13:51:35 +00:00
Filippos Karapetis
5a3ed29a4b
SCI: Changed the check for NULL values inside kArray(Cpy) to only ignore such values in SCI3
...
svn-id: r55002
2010-12-22 13:17:19 +00:00
Henry Bush
ada3c01cc1
HUGO: Set some volume levels to get the MAME adlib emul working
...
svn-id: r55000
2010-12-22 09:22:14 +00:00
Henry Bush
e20c902812
HUGO: Add music debug level, some cleanup when opening driver
...
svn-id: r54999
2010-12-22 09:09:38 +00:00
David Turner
1dde0156c2
MOHAWK: Add further getVar() code to Myst Channelwood Age Script Parser.
...
svn-id: r54998
2010-12-22 05:52:58 +00:00
David Turner
67cf6a0601
MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Channelwood Age Script Parser.
...
svn-id: r54997
2010-12-22 02:46:30 +00:00
David Turner
a87c52bdb0
MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Mechanical Age Script Parser.
...
svn-id: r54995
2010-12-21 23:18:38 +00:00
David Turner
43800ebf0c
MOHAWK: Remove unused variables warnings introduced in r54982.
...
svn-id: r54994
2010-12-21 22:16:37 +00:00
Filippos Karapetis
42dc70bb83
- SCI: Added code to free the _baseVars value in SCI3 as well. Both free() operations
...
have been commented out for now, as MSVC complains about heap corruption in SCI3 games
- Code formatting fixes
svn-id: r54991
2010-12-21 21:18:25 +00:00
Filippos Karapetis
7680ed0be7
Added back the null check in kArray(cpy): it happens in SCI3
...
svn-id: r54990
2010-12-21 20:54:33 +00:00
Alyssa Milburn
372ede7904
MOHAWK: Support compound images (subimages)
...
These are images embedded in the bitmap data of another image; they
are used in CSTime and Zoombinis, at least. Thanks to clone2727 for
helping me puzzle this out.
svn-id: r54989
2010-12-21 18:16:37 +00:00
Alyssa Milburn
7e5ffb2bcf
MOHAWK: Remove sound.h include from resource.h
...
svn-id: r54988
2010-12-21 18:16:20 +00:00
Alyssa Milburn
e97b2d25d1
MOHAWK: Allow DefaultCursorManager to use alternative tags
...
svn-id: r54987
2010-12-21 18:15:56 +00:00
Lars Skovlund
7b0760f1bc
Make Object::_baseMethod a Common::Array. This is intended to clean up
...
the Object class, and it also plugs a leak.
svn-id: r54986
2010-12-21 15:36:27 +00:00
Lars Skovlund
f1cd95e462
Simplify SCI3 relocation code, also making it correct.
...
svn-id: r54985
2010-12-21 15:34:02 +00:00
Filippos Karapetis
3a14a7760e
SCI: Fixed bug #3092115 - "ECOQUEST2: Initial text not cleared during ecorder intro"
...
svn-id: r54984
2010-12-21 15:31:59 +00:00
Filippos Karapetis
75649f8903
SCI: Reset the portrait bitmap to the "closed mouth" state, when skipping dialogs
...
in the Windows version of KQ6
svn-id: r54983
2010-12-21 07:53:34 +00:00
David Turner
3d3f7b09b2
MOHAWK: Add Framework of getVar(), setVar() and toggleVar() to Myst Stoneship Script Parser.
...
svn-id: r54982
2010-12-21 01:09:14 +00:00
Fabio Battaglia
5f6dfb2b67
N64: save and return exact palette for grabPalette
...
Save the exact palette and return it when grabPalette is called,
The less precise 16bit conversion is still used inside though.
svn-id: r54981
2010-12-20 21:46:28 +00:00
David Turner
b87bc18d22
MOHAWK: Add var getters for Myst Stellar Observatory Date-Time Display.
...
svn-id: r54980
2010-12-20 18:44:25 +00:00
Arnaud Boutonné
39fec99f26
HUGO: Fix several warnings reported by CppCheck
...
svn-id: r54979
2010-12-20 17:40:19 +00:00
Johannes Schickel
6308dd77d6
OSYSTEM: Clarify grabPalette documentation after talking with Max about it.
...
svn-id: r54978
2010-12-20 17:28:17 +00:00
Arnaud Boutonné
184d56df0a
HUGO: Improve keyboard handling
...
- Handle keypad
- Fix 'QWERTY' only issue
- Suppress useless variable and parameter
svn-id: r54977
2010-12-20 17:25:58 +00:00
Filippos Karapetis
26dfb6affa
SCI: Fixed bug #3041153 - "SCI Fanmade Games: Message window glitch"
...
The left window dimension adjustment (rev #48772 ) has been moved from
GfxPorts::setOrigin() into GfxPorts::addWindow(), as the updated dimension is
later used when filling the contents of the window (apparent in some fan made
games)
svn-id: r54976
2010-12-20 15:30:31 +00:00
Filippos Karapetis
4b836d611f
SCI: Fixed bug #3037945 - "PQ3 : Graphical Glitch with White Mercedes on Freeway"
...
svn-id: r54975
2010-12-20 12:21:18 +00:00
Filippos Karapetis
d3340b0d0c
SCI: Commented out unused signal flags
...
svn-id: r54974
2010-12-20 12:19:28 +00:00
Bastien Bouclet
9c23440ae4
MOHAWK: Fix 2 crashers with the Myst imager (selecting 00 and playing the moutain video).
...
svn-id: r54973
2010-12-20 07:58:45 +00:00
David Turner
3cc456bf2a
MOHAWK: Fixed Valgrind Error in Myst When Selecting 0 in Imager Code (Myst Card 4709)
...
Reworked MystGraphics::copyImageSectionToScreen() :
Added clipping of width and height within src surface dimensions.
Improved function readability.
svn-id: r54972
2010-12-20 04:29:53 +00:00