42369 Commits

Author SHA1 Message Date
Walter van Niftrik
97067a75db SCI: Allow paths along the edge of the screen in kAvoidPath.
Paths along the edge of the screen are now taken as a last resort. Fixes
bugs #3047418 and #3059595.

svn-id: r54199
2010-11-11 11:24:12 +00:00
Arnaud Boutonné
84e4c1742a HUGO: Suppress the use of Utils::Error, cleanup
svn-id: r54198
2010-11-11 10:36:10 +00:00
Filippos Karapetis
203ff5e19a SCI: Fixed bug #3104624 - "PQ3: Crash when loading saved game on the highway"
svn-id: r54197
2010-11-11 10:09:57 +00:00
Julien Templier
6711c5a8cf LASTEXPRESS: Fix more memory leaks
- Missing deallocation of queued frames in SceneManager
 - Leaking functor on each call to entity setup functions
 - Add SoundEntry destructor & better Entity cleanup

as reported by digitall

svn-id: r54196
2010-11-11 06:18:23 +00:00
Matthew Hoops
da33617061 SCI: Allow duck videos to be played from the console
svn-id: r54195
2010-11-11 05:18:40 +00:00
Matthew Hoops
5e8e77a814 VIDEO: Add the TrueMotion 1 codec for Phantasmagoria 2
Based on the FFmpeg decoder. Only the 16bpp version has been implemented (and all that should be needed). The videos I have tried work fine with the codec. The audio does not yet play in these videos, but I hope to work on DK3 IMA ADPCM soon.

svn-id: r54194
2010-11-11 04:53:52 +00:00
Julien Templier
3b66e53bbe LASTEXPRESS: Fix some memory leaks
- Reading past the end of file in SaveLoad::init
 - Missing deallocation of cache in SoundManager
 - Missing deallocation of coords in SceneHotspot
 - Missing deallocation of event handlers in LastExpressEngine::setEventHandlers
 - Missing deallocation of InSaveFile in SaveLoad::isSavegameValid
 - Missing deallocation of frames in Menu

as reported by digitall

svn-id: r54193
2010-11-11 03:25:35 +00:00
Matthew Hoops
d1bd2497a5 GRAPHICS: Enforce alphabetical order on the codec objects
svn-id: r54191
2010-11-10 19:18:39 +00:00
Yotam Barnoy
2e9b304d76 PSP: changed renderer to render huge images properly
The PSP HW wasn't able to calculate the proper stretching when given the whole image size on a huge image. This is also a better way to do it because we're not overwriting tiles of the texture.

svn-id: r54190
2010-11-10 16:22:00 +00:00
Matthew Hoops
dc02bd2b4e SCI: Add missing new line
svn-id: r54189
2010-11-10 14:40:23 +00:00
Filippos Karapetis
9d1006c7a3 SCI3: Some changes
- Placed the SCI3 version detection in the proper place
- Some new types of SCI3 MT-32 patches (e.g. in the Lighthouse SCI3 demo) are
ignored, for now

svn-id: r54188
2010-11-10 14:28:45 +00:00
Julien Templier
380121fb55 TOOLS: Remove CXXFLAGS rule from create_project module.mk
svn-id: r54187
2010-11-10 14:06:39 +00:00
Julien Templier
966e3c1305 TOOLS: Fix typo in create_project MSVC9 project file
svn-id: r54186
2010-11-10 09:07:10 +00:00
David Turner
52ecbd4305 TOON: Even more corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a few still remain.

svn-id: r54185
2010-11-10 06:22:18 +00:00
David Turner
7ad677afc8 SWORD25: Added basic debugging console to engine (Command Key Disabled)
Since SWORD25 uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.

However, this is not currently usable as the command key code is commented out.
This is due to the event loop which reads keyboard input being buried 2 object layers below the Engine VM object and I am unsure how the engine development team would want this exposed / interfaced.

svn-id: r54184
2010-11-10 04:30:24 +00:00
Johannes Schickel
c9969d2be0 TOOLS: Remove superflous pointer dereference in create_kyradat.
svn-id: r54183
2010-11-10 03:59:43 +00:00
Julien Templier
66b172bb26 TOOLS: Add create_project tool
- Move project providers to their own source files
 - Add support for Code::Blocks
 - Add analysis build configuration for Visual Studio

svn-id: r54182
2010-11-10 03:56:42 +00:00
Julien Templier
d1723ab2ec TOOLS: Remove create_msvc and update readme
svn-id: r54181
2010-11-10 03:46:36 +00:00
Julien Templier
aad7f2e0eb TOOLS: Update batch files for new create_project tool
svn-id: r54180
2010-11-10 03:44:50 +00:00
Matthew Hoops
988d9f3401 SCI: Fix SCI2.1+ fallback detection
Each map has to be mapped with its own specific volume (as opposed to earlier versions that had one map for all volumes); this code was passing the same map pointer for all volumes.

svn-id: r54179
2010-11-10 03:34:08 +00:00
Filippos Karapetis
7dec2bd6a8 SCI: Some SCI3 changes
- Extended the SCI2.1 kernel function signatures for SCI3, as they share 
the same kernel table
- All the engine parts are now initialized in SCI3 games, apart from the VM

svn-id: r54178
2010-11-10 01:08:17 +00:00
Filippos Karapetis
c3fd3e2329 SCI: Updated the SCI2.1 kernel function table with the SCI3 changes/additions
svn-id: r54177
2010-11-10 00:36:43 +00:00
David Turner
a74b8ad67f TOON: More corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a significant number still remain.

svn-id: r54176
2010-11-09 23:57:56 +00:00
Arnaud Boutonné
95a58b2471 HUGO: Fix the last leaks in H1 Dos
Thanks Hkz for the help!

svn-id: r54175
2010-11-09 23:31:08 +00:00
Filippos Karapetis
e8e23a83e9 SCI: Removed the Shivers 2 hack from the segment manager (it isn't SCI)
svn-id: r54174
2010-11-09 22:20:36 +00:00
Filippos Karapetis
581a090204 SCI3: Removed detection and any possible support of Shivers 2
Shivers 2 doesn't contain SCI scripts. The whole game logic has
been reimplemented from SCI in native code placed in DLL files.
Each room has its own DLL file, and some SCI functions have been
reimplemented/rewritten for this purpose in native code. The
game and demo have all the resources of a SCI game, apart from
the SCI scripts themselves. Thus, they cannot be directly
supported, unless their whole room logic is rewritten from
scratch, which classifies Shivers 2 as "not SCI"

svn-id: r54173
2010-11-09 22:01:12 +00:00
Eugene Sandulenko
a537ddb614 GUI: Added IS8859-7 fonts. Helvetica is missing
svn-id: r54172
2010-11-09 21:31:23 +00:00
Eugene Sandulenko
b00c631f20 GUI: Generate iso8859-2 codepage fonts
svn-id: r54171
2010-11-09 21:30:00 +00:00
Eugene Sandulenko
f4a78c9b0c GUI: Added original 5x8 font
svn-id: r54170
2010-11-09 21:29:04 +00:00
Eugene Sandulenko
e7333afde5 CONFIGURE: Fix linking in some cases
Nowadays code in graphics/ depends on sound/ i.e. in video codecs.
This fixes ./configure --disable-all-engines --enable-toon

svn-id: r54169
2010-11-09 20:48:23 +00:00
Arnaud Boutonné
d002800b52 HUGO: Fix several memory leaks
svn-id: r54168
2010-11-09 20:26:12 +00:00
Filippos Karapetis
1a85ce8e03 SCI: Some slight work on SCI3
- Enabled the SCI3 game entries for testing purposes
- The resource manager is initialized fully now (with a slight hack)
- Added a hack for the demo of Shivers 2 (which seemingly has no
scripts or vocabularies)
- The engine will stop before parsing any game scripts in SCI3 games,
and opens the console for resource manager-related functionality

svn-id: r54167
2010-11-09 19:37:42 +00:00
Matthew Hoops
45f4f84e03 MOHAWK: Fix one more memory leak (hopefully the last :))
svn-id: r54166
2010-11-09 18:58:44 +00:00
Matthew Hoops
0dd4a46102 MOHAWK: Fix cache memory leak and some formatting
svn-id: r54165
2010-11-09 18:52:29 +00:00
Matthew Hoops
a4978587d8 MOHAWK: Fix memory leaks (thanks to digitall for finding)
svn-id: r54164
2010-11-09 18:38:35 +00:00
Filippos Karapetis
55f0b88c07 SCI: Fixed the fallback detector again
This is a regression from r54155, as we previously ignored the result of 
addInternalSources() in the fallback detector

svn-id: r54163
2010-11-09 17:07:34 +00:00
Matthew Hoops
4582a94ff9 SCI: Fix Lighthouse SCI2.1 demo
This is a regression from r54155. Fixed by moving the chunk resource loading earlier.

svn-id: r54162
2010-11-09 16:56:31 +00:00
Matthew Hoops
567441f032 SCI: Formatting convention fixes
svn-id: r54161
2010-11-09 16:23:08 +00:00
Matthew Hoops
8a788d16d7 SCI: Fix compile when SCI32 is not enabled
svn-id: r54160
2010-11-09 16:06:33 +00:00
Filippos Karapetis
2e8ca1aa9b create_msvc: Added the SDL_BACKEND define, to fix compilation with MSVC
svn-id: r54159
2010-11-09 15:55:17 +00:00
Lars Skovlund
acf581fe67 SCI: Temporarily disable the PrintDebug call, which is only partially
implemented and insufficient for Shivers/Full. It is also unnecessary
for normal play.

svn-id: r54158
2010-11-09 15:45:20 +00:00
Lars Skovlund
32ff20477b SCI: Add uninitialized temp workaround for Shivers
svn-id: r54157
2010-11-09 15:16:40 +00:00
Lars Skovlund
3a9d935023 SCI: Fix error message in ShowMovie(), perhaps avoiding some confusion later
svn-id: r54156
2010-11-09 15:15:13 +00:00
Lars Skovlund
9a0b6ad69a SCI: Add resource manager support for SCI3 games.
ScummVM now rejects them properly instead of spewing lots of
unintelligible stuff. 

svn-id: r54155
2010-11-09 14:25:39 +00:00
Filippos Karapetis
1e9407be3f SCI: Added comments for rev. 54150 and fixed a typo
svn-id: r54153
2010-11-09 11:57:54 +00:00
David Turner
63d023964e MOHAWK: Close a number of memory leaks in Myst.
These corrections close a number of leaks reported by running Valgrind with --leak-check=full option, but some still remain, mainly in the image loading and caching.

svn-id: r54152
2010-11-09 11:02:06 +00:00
Fabio Battaglia
77a636aaec N64: correct wrong check in romfs stream code
my implementation of romfs_seek is based on lseek, not on fseek,
so it returns the offset on successful completion, not 0, corrected
the check in RomfsStream::seek().

svn-id: r54151
2010-11-09 11:00:56 +00:00
Lars Skovlund
53a4a64b16 treat pushSelf opcode with low bit set as pushSelf (in fangames only, currently). Fixes bug #3038686.
(SCI Fanmade - Circus Quest: Crash when starting).

svn-id: r54150
2010-11-09 10:07:34 +00:00
Matthew Hoops
4a5b01e3bb CONFIGURE: Define SDL_BACKEND for GP2X/GPH/WINCE backends
This should fix compilation on those systems.

svn-id: r54149
2010-11-09 05:21:07 +00:00
Max Horn
059944e59c COMMON: Push #include audiocd.h in system.h out to .cpp files
svn-id: r54148
2010-11-08 23:07:42 +00:00