38079 Commits

Author SHA1 Message Date
Nicola Mettifogo
f84b232443 Add a parser for HEAR zones in BRA, and handle the relative MUSIC command. Patch 3003382 by fuzzie, with enhancements.
svn-id: r49105
2010-05-19 17:16:15 +00:00
Filippos Karapetis
92c1f4625d Fixed silly typo in #49099. Iceman works again (thanks m_kiewitz)
svn-id: r49104
2010-05-19 17:11:15 +00:00
Nicola Mettifogo
cbee7eebd4 Do not try and run dialogues when there is no dialogue defined in a SPEAK zone. Patch 3003382 by fuzzie.
svn-id: r49103
2010-05-19 16:54:42 +00:00
Filippos Karapetis
480e5c8488 Added a new method to the resource manager, to help determine if we got a SCI1.1 Mac game. Started rewriting the fallback detector so that it doesn't rely on the segment manager to find the internal game ID
svn-id: r49102
2010-05-19 15:57:58 +00:00
Martin Kiewitz
3f10841ae8 SCI: removed cmdStopAllSounds(), can't be right - added FIXME - fixes iceman room 14 music stopping within 1-2 seconds
svn-id: r49101
2010-05-19 14:54:39 +00:00
Filippos Karapetis
893af1600a Fixed signed/unsigned warning, changed to CamelCase
svn-id: r49100
2010-05-19 14:45:56 +00:00
Filippos Karapetis
d1f1c71f50 Cleaned up script_instantiate_sci0()
svn-id: r49099
2010-05-19 14:43:16 +00:00
Martin Kiewitz
9b4f352870 SCI: cleanup soundcode - number renamed to resourceId, prio renamed to priority
svn-id: r49098
2010-05-19 14:19:16 +00:00
Martin Kiewitz
bb10dabe90 SCI: changing debugger commands to not require "?"-prefix for objects anymore. It's now also possible to use 0x prefix for hexadecimal values e.g. "vo 0x13", "vo 13h", "vo theSound", "vo 12f:34f" is now possible
svn-id: r49097
2010-05-19 13:32:27 +00:00
Eugene Sandulenko
15c533d2c2 Implement FR #2841445: FW: Restart doesn't work
svn-id: r49096
2010-05-19 12:34:10 +00:00
Eugene Sandulenko
2be9bb3d5f Implement FR #2841494: FW: Pause doesn't work
svn-id: r49095
2010-05-19 12:17:59 +00:00
Filippos Karapetis
209798474b Updated the save game format for the changes in #49093
svn-id: r49094
2010-05-19 09:39:11 +00:00
Filippos Karapetis
174a043aa7 Removed the exportsAreWide variable from the segment manager and save games, and moved validateExportFunc() in the Script class, thus resolving a TODO
svn-id: r49093
2010-05-19 08:50:24 +00:00
Filippos Karapetis
852cb16c49 Moved the breakpoint information inside the DebugState struct
svn-id: r49092
2010-05-19 07:25:06 +00:00
Filippos Karapetis
db3fc7a89e Added missing single quote
svn-id: r49091
2010-05-19 06:53:47 +00:00
Eugene Sandulenko
95b1c13eae formatting
svn-id: r49090
2010-05-19 05:42:14 +00:00
Eugene Sandulenko
61d7bfb730 Patch from Littleboy to silence useless warning due to VideoDecoder changes
svn-id: r49089
2010-05-19 05:35:27 +00:00
Filippos Karapetis
9af44c9332 Added packing to the QT structures
svn-id: r49088
2010-05-19 00:25:12 +00:00
Martin Kiewitz
e41874c91d SCI: set signal on fadeOut and also set signal when fade is requested but sound is not playing (& show warning in that case) - fixes iceman hang after fireworks in room 14
svn-id: r49087
2010-05-18 19:59:43 +00:00
Johannes Schickel
62717eafc4 Replace some strncpy usages with Common::strlcpy.
svn-id: r49086
2010-05-18 18:16:47 +00:00
Johannes Schickel
e4d1c8a1bd Replace one instance of strncpy with Common::strlcpy.
svn-id: r49085
2010-05-18 18:16:21 +00:00
Matthew Hoops
759e4923d0 Add a new class 'RewindableVideoDecoder' that allows a video to be rewound and have QTPlayer inherit from that.
svn-id: r49084
2010-05-18 17:36:34 +00:00
Filippos Karapetis
83f31e4e44 Added the number of parameters passed in unknown kDoAudio subops
svn-id: r49083
2010-05-18 15:52:45 +00:00
Filippos Karapetis
512435893b Started simplifying and removing a lot of unused code from the SAGA Mac resource loader, to be ultimately replaced by the common Mac resource loader
svn-id: r49082
2010-05-18 15:16:53 +00:00
Matthew Hoops
bddceced34 Have QTPlayer inherit from VideoDecoder. The video downscaling (QuickTime is insane) has also been moved to the QTPlayer class.
svn-id: r49081
2010-05-18 14:59:20 +00:00
Filippos Karapetis
6499ddff8e Added back video skipping in SAGA2 with the escape key or left mouse button
svn-id: r49080
2010-05-18 14:57:02 +00:00
Matthew Hoops
11cbdd0318 Committing the rest of the VideoDecoder Rewrite from patch #2963496.
svn-id: r49079
2010-05-18 14:17:24 +00:00
Filippos Karapetis
f3892a506b - Removed the wrapper kalloc, kmem and kfree functions. Now, the associated Segment manager functions allocateHunkEntry, getHunkPointer and freeHunkEntry are used directly (which are more descriptive, anyway)
- Replaced the GET_SEGMENT macro by a method of the segment manager
- Removed the unused reference to the created hunk in allocateHunkEntry(), only the reg_t reference to it is returned now

svn-id: r49078
2010-05-18 13:05:09 +00:00
Martin Kiewitz
e3297ef2ca SCI: fixing crash in pq2 - not sure about this, lskovlun should take a look at this
svn-id: r49077
2010-05-18 12:34:14 +00:00
Filippos Karapetis
46af5a5162 - Moved kernel_lookup_text inside the Kernel class
- Added a pointer to the segment manager from within the Kernel class, thus simplifying the calls to it

svn-id: r49076
2010-05-18 12:16:48 +00:00
Filippos Karapetis
75f4791a4a - Moved determine_reg_type() and kernel_matches_signature() inside the Kernel class, where they belong
- Moved the kernel signature defines inside kernel.h
- Removed some unused references to EngineState

svn-id: r49075
2010-05-18 11:23:13 +00:00
Eugene Sandulenko
15986b81c2 Added getBaseFileName() method and enhanced open() with trying macbinary format in plain files
svn-id: r49074
2010-05-18 10:39:08 +00:00
Ori Avtalion
7ab8f6e25b Fix currentFrame semantics in Flic player
svn-id: r49073
2010-05-18 10:01:31 +00:00
Willem Jan Palenstijn
16afdc372e Fix missing dialogue index.
This is the BR case of the NS fix in r45053. Patch by fuzzie@fuzzie.org .

svn-id: r49072
2010-05-18 09:24:53 +00:00
Filippos Karapetis
8b7c29a4ad Moved breakpointWasHit inside the DebugState struct, thus resolving a FIXME
svn-id: r49071
2010-05-18 09:18:27 +00:00
Matthew Hoops
3dda73d9a2 Add initial support for KQ6 Mac. Wrapper functions for read/writing to pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression.
svn-id: r49070
2010-05-18 04:17:58 +00:00
Johannes Schickel
0fe2ba6a0d Some more enforcement of our formatting conventions in KYRA too.
svn-id: r49069
2010-05-17 23:29:44 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Johannes Schickel
01070d72d3 Minor formatting.
svn-id: r49067
2010-05-17 22:17:42 +00:00
Max Horn
22caf0e1cf Get rid of Common::Rational::normalize and other redundant code
svn-id: r49066
2010-05-17 22:08:40 +00:00
Max Horn
c56a481f88 Use TS_ASSERT_EQUALS in test cases
svn-id: r49065
2010-05-17 22:08:19 +00:00
Max Horn
00cd966f3d Some tweaks and fixes for Common::Rational
* Fix Common::gcd to work with negative input
* This fixes a bug in Common::Rational's multiplication code
* Add some more basic unit tests (including one which checks for
  the now fixed multiplication bug)
* cleanup

svn-id: r49064
2010-05-17 22:07:58 +00:00
Matthew Hoops
c7fa1074fb Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite).
svn-id: r49063
2010-05-17 21:59:05 +00:00
Matthew Hoops
ea84abf588 Add tests for Common::Rational from patch #2963496 (VideoDecoder Rewrite), also courtesy of DrMcCoy who wrote the main Common::Rational class too
svn-id: r49062
2010-05-17 20:57:36 +00:00
Matthew Hoops
811fc0e7ec Add the Common::Rational class from patch #2963496 (VideoDecoder Rewrite)
svn-id: r49061
2010-05-17 20:53:04 +00:00
Joost Peters
dd0c1fd6f0 Restrict MIPSpro workaround to non-gcc compilers -- fixes compilation with gcc on irix.
svn-id: r49060
2010-05-17 16:50:10 +00:00
Joost Peters
946fe2905e Change product id to just be "ScummVM <version>"
svn-id: r49059
2010-05-17 11:02:35 +00:00
Paul Gilbert
68cae03b3c Bugfixes for animation display, and better understanding of how animations cycle
svn-id: r49057
2010-05-17 10:30:17 +00:00
Martin Kiewitz
4119fdb9a9 SCI: adding speed throttler special case for iceman / submarine control room
svn-id: r49056
2010-05-17 09:32:16 +00:00
Yotam Barnoy
8b59e45e6e PSP: added option for render by callback and fixed up and cleaned up debug mechanism. This allows for about 4% speedup since we no longer need to wait for VSYNC in our main thread. I'll activate it as soon as I've tested it out properly.
svn-id: r49055
2010-05-17 07:22:26 +00:00