Filippos Karapetis
e55a55a277
SCI: Remove key modifier (e.g. num lock) status for keyboard function keys. This fixes function key input (e.g. F3) when num lock is on
...
svn-id: r54294
2010-11-17 14:48:28 +00:00
Filippos Karapetis
47e137fd8e
SCI: lofsa/lofss functionality for SCI3
...
- Updated detectLofsType() for SCI3
- Cleaned up op_lofsa and op_lofss and updated them for SCI3
svn-id: r54293
2010-11-17 14:28:32 +00:00
Filippos Karapetis
c003032b4c
SCI: Allow SCI3 game scripts to run
...
SCI3 scripts do start up now, however they stop quite early, as there is still
missing functionality which prevents them from running fully. This will be useful
for debugging, though
svn-id: r54292
2010-11-17 14:08:13 +00:00
Filippos Karapetis
bb9b7c24f9
SCI: Added some SCI3 selector related information
...
- Added a TODO for the usage of the -info- selector in kClone and kDisposeClone in
SCI3 scripts, as it's no longer used in SCI3
- Added information about which of the selectors are missing in SCI3. There are
some more which are missing, but aren't used in SCI2-SCI3 anyway
- Some styling
svn-id: r54291
2010-11-17 14:03:14 +00:00
Max Horn
3d7f7b49fe
SCI: Make class table size OB1 workaround slightly more readable
...
svn-id: r54290
2010-11-17 13:01:58 +00:00
Filippos Karapetis
58e4d9a97a
SCI: Fixed the return values of Object::relocateSci3()
...
svn-id: r54289
2010-11-17 12:33:55 +00:00
Max Horn
ee4770ffb6
ENGINES: Change 'colour' to 'color'
...
Only changed this in engines where 'color' was/is already used
almost exclusively
svn-id: r54288
2010-11-17 12:22:08 +00:00
Max Horn
5ceb54d088
TINSEL: Get rid of some global variables
...
These were actually all "harmless" (i.e. where no obstructions
to RTL support). Still good to get rid of 'em!
svn-id: r54286
2010-11-17 12:13:23 +00:00
Max Horn
5a554e3dbe
SCI: Change 'colour' to 'color'
...
All other instances already were spelled 'color' in the SCI
engine (and also most other parts of ScummVM)
svn-id: r54285
2010-11-17 12:13:03 +00:00
Filippos Karapetis
a702ad5123
SCI3: added a SCI3 implementation of findGameObject(), based on a patch by lskovlun
...
svn-id: r54284
2010-11-17 11:17:38 +00:00
Filippos Karapetis
b707d6e7dc
SCI: More work on SCI3, based on a patch by lskovlun
...
- Added SCI3 equivalents for access to object selectors
- Added SCI3 implementation of object relocation
- Added SCI3 implementation of Script::initialiseClasses()
svn-id: r54283
2010-11-17 11:15:52 +00:00
Filippos Karapetis
59ad5085bc
SCI: Some more work on SCI3, based on a patch by lskovlun
...
- Added a SCI3 implementation of Script::load()
- Added a SCI3 implementation of Script::initialiseClasses()
- Removed some duplicate code
svn-id: r54282
2010-11-17 09:28:04 +00:00
Filippos Karapetis
e4c967a301
SCI: Added the SCI3 equivalent of initialiseObjects(), from a patch by lskovlun
...
svn-id: r54281
2010-11-17 09:10:43 +00:00
Filippos Karapetis
f44b084deb
SCI: Some restructuring. Added some SCI3 placeholders/stubs
...
svn-id: r54280
2010-11-17 08:53:02 +00:00
Filippos Karapetis
0470e47145
SCI: The heap was a separate resource in SCI1.1 - SCI2.1 games only. It was later
...
merged into the script files again in SCI3
svn-id: r54279
2010-11-17 08:30:08 +00:00
Filippos Karapetis
553d571c50
SCI: Specify that -1 means "all maps" when listing base36-encoded resources
...
svn-id: r54278
2010-11-17 08:18:56 +00:00
Filippos Karapetis
c36f072190
SCI: Updated dissectScript() to handle synonym blocks
...
svn-id: r54277
2010-11-17 08:10:36 +00:00
Filippos Karapetis
9d318497f7
SCI: Unified the functionality and parameters of the disasm and disasm_addr commands
...
svn-id: r54276
2010-11-17 08:05:11 +00:00
Filippos Karapetis
c2d9c1b06b
SCI: Added the ability to display original script bytecode in the "disasm" console command
...
svn-id: r54275
2010-11-17 00:05:09 +00:00
Filippos Karapetis
f81b42dcaf
SCI: Fix for bug #3110215 - "SQ4 German: endless flight on Estros"
...
svn-id: r54272
2010-11-16 22:36:06 +00:00
Filippos Karapetis
144ed3e22d
TINSEL: Fixed compilation with MSVC
...
svn-id: r54271
2010-11-16 22:09:46 +00:00
Julien Templier
da90fa1405
LASTEXPRESS: Fix SequenceFrame leak in Entities code
...
- Add EntityCallData destructor to dispose of frames & Sequences
- Properly dispose of frames in Entities::resetSequences()
svn-id: r54270
2010-11-16 14:06:59 +00:00
Max Horn
668adaa461
GUI: Rename gui/GuiManager.* to gui/gui-manager.*
...
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
427dc1ae93
GUI: Move major widgets to new directory gui/widgets
...
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files
svn-id: r54264
2010-11-16 10:11:57 +00:00
Max Horn
c734fc2b3e
TINSEL: Remove unnecessary 'static'
...
svn-id: r54263
2010-11-16 09:54:11 +00:00
Max Horn
1dbf8d73d5
TINSEL: Mark all (?) global vars with a FIXME comment
...
Use of global vars is what prevents RTL from working in Tinsel (and
probably in other engines). More specifically, the fact that many
global vars are not explicitly inited when the engine is (re)launched.
svn-id: r54262
2010-11-16 09:53:55 +00:00
Max Horn
ada9c9af60
TINSEL: Removed unnecessary 'static'
...
svn-id: r54261
2010-11-16 09:53:08 +00:00
Max Horn
abe1959d36
COMMON: Simplify DECLARE_SINGLETON macro
...
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
2010-11-16 08:23:13 +00:00
Julien Templier
396bec13f9
LASTEXPRESS: Use Common::StackLock instead of mutex lock/unlock in Sound class
...
svn-id: r54247
2010-11-15 15:48:39 +00:00
Julien Templier
7d9c43d22b
LASTEXPRESS: Fix frame leak in Entities::processFrame()
...
When not keeping the previous frame, the current frame was overwritten.
We now delete it before assigning a new value.
svn-id: r54246
2010-11-15 15:48:20 +00:00
Julien Templier
a4d9d03601
LASTEXPRESS: Update Animation::process()
...
- Use Common::Rational to compute the current frame
- Added check for _currentChunk != NULL
- Add constructor to Chunk structure
svn-id: r54245
2010-11-15 15:48:08 +00:00
Matthew Hoops
dbb3e1dded
LASTEXPRESS: Don't use NULL in arithmetic (silences a warning)
...
svn-id: r54244
2010-11-15 15:20:48 +00:00
Julien Templier
8664535029
LASTEXPRESS: Protect sound queue accesses with mutex
...
Sound entries were being streamed before the data was fully loaded
and queue addition/removal could happen while the sound timer was
going through the queue (reported by digitall).
svn-id: r54241
2010-11-15 12:48:54 +00:00
David Turner
69e42a0d4d
SCI: Workaround for bug #3109299 "QFG1VGA: Crash when leaving area east of Antwerp"
...
Extended current workarounds to cover QFG1VGA.
svn-id: r54239
2010-11-15 06:17:35 +00:00
Thierry Crozat
2b33642d54
GUI: Fix GMM labels translation for SCUMM engine
...
In the SCUMM engine (and maybe other engines), the GMM Dialog is created
in the engine constructor and before the window resolution is updated (so it is
still using the resolution from the Launcher). Therefore if the global scaler is x2
but a SCUMM game overwrite it to use x1, it was not using the correct labels
when they had a different translation for the lowres context.
svn-id: r54237
2010-11-14 21:10:56 +00:00
Paul Gilbert
db24b2a014
LURE: Fix for Valgrind identified memory leaks
...
svn-id: r54236
2010-11-14 00:35:13 +00:00
Walter van Niftrik
ecaab84cb5
SCI: Fixup pathfinding start point when on polygon edge.
...
We now also fixup the start point when it's on the edge of an obstacle. If the
start point is also on the edge of the screen, the actor is now allowed to
walk through that obstacle to find his way to clear territory. This is based
on observation of SSCI behavior.
svn-id: r54230
2010-11-13 14:46:27 +00:00
Filippos Karapetis
325d93d5d8
HUGO: Fixed crash on exit when hugo.dat is not available
...
svn-id: r54228
2010-11-13 13:41:43 +00:00
Filippos Karapetis
f3ea2315fc
SCI: Fixed script bug #3108012 - "Hoyle1: Crash when changing Deal Speed in Hearts"
...
svn-id: r54226
2010-11-13 13:34:10 +00:00
David Turner
6c78ca4876
HUGO: Close two minor memory leaks.
...
Destructor added to SoundHandler and added delete for _intro in engine destructor.
svn-id: r54225
2010-11-13 08:08:58 +00:00
Sylvain Dupont
db51fb3386
TOON: Fix free/malloc mismatch
...
svn-id: r54224
2010-11-13 02:59:46 +00:00
Sylvain Dupont
a373bd4a53
TOON: Fix more memory leaks
...
Mainly leaks in audio and animations
svn-id: r54223
2010-11-13 02:44:34 +00:00
Sylvain Dupont
420c2c9ff2
TOON: Fixed menu music leak
...
svn-id: r54222
2010-11-13 01:37:37 +00:00
Sylvain Dupont
698f4c2b45
TOON: Walk animation improved
...
Smoothing direction changes. Still needs to be polished though.
svn-id: r54221
2010-11-13 01:15:37 +00:00
Matthew Hoops
405fd0b5eb
SCI: Update resource types for SCI2.1/3
...
svn-id: r54220
2010-11-13 00:20:23 +00:00
Sylvain Dupont
8a4cc14b1a
TOON: Fix audio crashs and more memory leaks
...
svn-id: r54219
2010-11-12 22:31:04 +00:00
Arnaud Boutonné
fd82c3783d
TOOL+HUGO: Misc modifications
...
- Fix H1 Dos bug (animations not showing in Hall and after)
- Get rid of _textSchedule and everything related
H1 Dos shoud now be completable (not tested yet)
svn-id: r54218
2010-11-12 18:05:23 +00:00
Filippos Karapetis
103ac9c566
Fixed signed/unsigned warning
...
svn-id: r54217
2010-11-12 13:05:54 +00:00
Filippos Karapetis
cc403e542d
SCI: Don't check for SCI2/SCI2.1 kernel types in SCI3 games.
...
Patch by lskovlun
svn-id: r54216
2010-11-12 00:01:13 +00:00
Filippos Karapetis
77da22290d
SCI: kSave case 0 is actually kSaveGame. Based on a patch by lskovlun
...
svn-id: r54215
2010-11-11 23:51:43 +00:00