11250 Commits

Author SHA1 Message Date
Filippos Karapetis
e4f6330418 Added a SCI1.1 case in the lofss opcode, like in the lofsa opcode (essentially, lofss and lofsa both load an offset, with lofsa loading it in the accumulator and lofss in the stack). lofss is rarely used in SCI1.1 games, which explains why no lofss-related crashes have been observed in SCI1.1
svn-id: r42209
2009-07-07 07:51:26 +00:00
Arnaud Boutonné
45b7e5bbc2 Add detection of Playtoons 2 En
svn-id: r42208
2009-07-07 07:51:18 +00:00
Filippos Karapetis
c716e43a2b - Added auto-detection for EGA graphics. As a result of this, GF_SCI1_EGA has been removed and versions SCI_VERSION_01_EGA and SCI_VERSION_01_VGA have been merged into SCI_VERSION_01
- Simplified the checks for EGA and VGA graphics
- Fixed a bug in script_adjust_opcode_formats()
- Simplified the code in GfxResManager::getView() a bit

svn-id: r42206
2009-07-07 07:44:25 +00:00
Paul Gilbert
b50b5ae5a4 Removed the shooting workaround delay - the overlay number can vary, so it isn't a reliable way of identifying the specific message
svn-id: r42205
2009-07-07 07:41:02 +00:00
Travis Howell
1e568222e4 Set the correct sound rate for Personal Nightmare.
svn-id: r42202
2009-07-07 07:02:04 +00:00
Filippos Karapetis
2e3419c8cb Prevent a crash when the engine errors out before the game state is initialized
svn-id: r42201
2009-07-07 06:53:53 +00:00
Filippos Karapetis
0a8cd4a27d Removed unused define
svn-id: r42200
2009-07-07 06:29:07 +00:00
Paul Gilbert
3dd21aa218 Fix to the return values of the Op_GetMouseButton library function now allows the game's "Fisticuffs path" to work properly
svn-id: r42199
2009-07-07 06:23:09 +00:00
Paul Gilbert
7cc82cfea1 Added workaround to briefly pause when displaying the first message of the shooting cut-scene, so it can be read properly
svn-id: r42198
2009-07-07 02:51:42 +00:00
Paul Gilbert
5270c82523 Bugfix so that user delays work correctly
svn-id: r42197
2009-07-07 02:49:33 +00:00
Paul Gilbert
7f7edabbdd Bugfix so the game speed will correctly change after showing the credits when the game is restarted
svn-id: r42196
2009-07-07 01:14:55 +00:00
Filippos Karapetis
219b0de0d2 Renamed SCI_VERSION_01 -> SCI_VERSION_01_EGA
svn-id: r42181
2009-07-06 16:22:14 +00:00
Johannes Schickel
c22010b3d2 Fix RTL from Kyra3 main menu. (It now doesn't quit ScummVM anymore)
svn-id: r42180
2009-07-06 16:17:03 +00:00
Filippos Karapetis
30d1462da0 Swapped the music and audio resource check for SCI1.1 games. Digital sound effects are now preferred over the synthesized ones
svn-id: r42179
2009-07-06 15:50:44 +00:00
Filippos Karapetis
8f284ad396 KQ6CD should be working correctly again
svn-id: r42178
2009-07-06 15:30:07 +00:00
Jordi Vilalta Prat
69a3e2759e Groovie: Improve ROQ timing and audio sync (noticeable at least in the Clandestiny trailer)
svn-id: r42177
2009-07-06 15:23:50 +00:00
Sven Hesse
77c7c1cf81 Loop over the string instead of copying and then editing it (hopefully, the PSP GCC won't ICE again here :P)
svn-id: r42176
2009-07-06 13:52:47 +00:00
Joost Peters
de995433c6 add workaround for PSP compiler ICE
svn-id: r42175
2009-07-06 13:09:50 +00:00
Filippos Karapetis
b38c5f8c5c Proper handling of sound effects marked as music resources
svn-id: r42174
2009-07-06 12:44:55 +00:00
Paul Gilbert
3abc1e8375 Removed all the current special cases coding for user (mouse press) waiting, and reimplemented it exactly the way the original did
svn-id: r42173
2009-07-06 12:33:05 +00:00
Filippos Karapetis
250a1a915a When a song isn't found, send a "stop handle" event so that the engine won't wait forever (e.g. in SQ4CD, perhaps others)
svn-id: r42172
2009-07-06 11:33:28 +00:00
Sven Hesse
e182cc0b9f Splitting up the big evaluate() function
svn-id: r42171
2009-07-06 11:19:37 +00:00
Filippos Karapetis
87988c69ee Assigned several unimplemented/unused kernel functions as stubs, so that we know when they're used and how they're called
svn-id: r42170
2009-07-06 11:19:19 +00:00
Filippos Karapetis
bceacbd922 Added seChanged the warning displayed when a selector can't be mapped to a debugC - it's perfectly normal not to find certain selectors in certain SCI versions. Also, fixed the SCI version enums
svn-id: r42169
2009-07-06 11:15:42 +00:00
Filippos Karapetis
1f3f4ccdd2 Fixed compilation
svn-id: r42168
2009-07-06 11:10:35 +00:00
Filippos Karapetis
522b161bec Replaced sciprintf() calls with printf, DebugPrintf, warning and error calls
svn-id: r42167
2009-07-06 10:39:22 +00:00
Travis Howell
3ce15cb9b7 Ooops, remove debug code.
svn-id: r42164
2009-07-06 06:24:04 +00:00
Travis Howell
dc0f6dce76 Use graphics surfaces for screen buffers, and always use correct pitch when writing to the frameBuffer.
svn-id: r42163
2009-07-06 06:21:59 +00:00
Paul Gilbert
08df8dc272 Bugfix for node enabling/disabling, which was previously allowing the player to walk through closed doors and into the walls
svn-id: r42162
2009-07-06 02:46:59 +00:00
Sven Hesse
c3d9acf309 Adding more comments
svn-id: r42161
2009-07-06 01:41:29 +00:00
Sven Hesse
edfaf7bc3c Added an enum for the hotspot states
svn-id: r42155
2009-07-05 21:40:51 +00:00
Sven Hesse
29e97533c1 Adding some hotspot debug messages
svn-id: r42154
2009-07-05 21:40:20 +00:00
Sven Hesse
50108e9135 Renaming the last occurences of "Collision" to "Hotspot"
svn-id: r42153
2009-07-05 21:39:55 +00:00
Sven Hesse
c88b9be2a7 Reordering some methods
svn-id: r42150
2009-07-05 19:58:09 +00:00
Sven Hesse
d6c99ae861 Renaming FontDesc::extraData to charWidths
svn-id: r42149
2009-07-05 19:57:55 +00:00
Sven Hesse
62fcf1177d More input related split-offs
svn-id: r42148
2009-07-05 19:57:37 +00:00
Sven Hesse
5a85a13615 Split off some drawing related functions
svn-id: r42147
2009-07-05 19:57:22 +00:00
Sven Hesse
9f0245094b Ooops, fixing monospaced text input again
svn-id: r42146
2009-07-05 19:57:08 +00:00
Sven Hesse
c4dc61edb5 Split off Hotspots::evaluateNew()
svn-id: r42145
2009-07-05 19:56:54 +00:00
Sven Hesse
aeb020602a More state-related encapsulation
svn-id: r42144
2009-07-05 19:56:40 +00:00
Sven Hesse
a7ab6c5e92 Correcting an input related mistake
svn-id: r42143
2009-07-05 19:56:23 +00:00
Sven Hesse
dbdce9616c Encapsulating hotspot state reading
svn-id: r42142
2009-07-05 19:56:03 +00:00
Florian Kagerer
b43664e368 LOL: cleanup
svn-id: r42141
2009-07-05 16:29:17 +00:00
Florian Kagerer
501df3adf8 LOL: - reduce code duplication
svn-id: r42140
2009-07-05 14:58:22 +00:00
Filippos Karapetis
d424bee608 Merged the two SCI1 versions in one more file
svn-id: r42136
2009-07-05 13:07:11 +00:00
Sven Hesse
daaba72677 Adding a workaround for an invalid expression in Gob1 EGA
svn-id: r42135
2009-07-05 12:52:14 +00:00
Filippos Karapetis
c31d1b3180 - Fixed feature auto-detection for Conquests of Camelot
- Auto-detected features are now printed in the console (to ease debugging)

svn-id: r42132
2009-07-05 11:49:05 +00:00
Sven Hesse
7e7c86a337 Removing the now unneeded Game_v* classes
svn-id: r42131
2009-07-05 11:30:14 +00:00
Sven Hesse
7e11c18fa2 Putting the Urban noCD check into Init_v6::initGame()
svn-id: r42130
2009-07-05 11:29:54 +00:00
Sven Hesse
14172febf7 Merging playTot()
svn-id: r42129
2009-07-05 11:29:30 +00:00