Filippos Karapetis
982153e0ab
restAdjust should be a signed integer. Fixes crashes with SCI1 games that take absolute lofs parameters (a regression of commit #42260 )
...
svn-id: r42297
2009-07-09 15:46:26 +00:00
Johannes Schickel
a17333ed1b
Cleanup rollDice (the results of the old and the new function are almost identical).
...
svn-id: r42293
2009-07-09 15:32:25 +00:00
Johannes Schickel
a7c96e1526
Cleanup.
...
svn-id: r42292
2009-07-09 15:32:06 +00:00
Filippos Karapetis
8a783bdd76
Renamed sound/iff.* to sound/iff_sound.* to fix an issue with the upcoming changes to the MSVC project files (sound/iff.* produces iff.obj, which clashes with iff.obj from graphics/iff.*)
...
svn-id: r42287
2009-07-09 13:17:46 +00:00
Sven Hesse
3823ae285f
Giving Font its own real class
...
svn-id: r42277
2009-07-09 02:54:10 +00:00
Florian Kagerer
c7eedb573a
LOL: cleanup
...
svn-id: r42271
2009-07-08 21:12:03 +00:00
Florian Kagerer
a212a9da7e
LOL: rename new function in last commit according to LordHoto's suggestion
...
svn-id: r42270
2009-07-08 20:32:34 +00:00
Florian Kagerer
2950bc28c4
LOL: fix long standing bugs in the battle system (hit chance, damage, etc) by adapting original style random number generator
...
svn-id: r42269
2009-07-08 20:19:23 +00:00
Filippos Karapetis
5ca94c5cce
- Moved printObject inside the Console class
...
- Enabled the parts where disassemble() is called
svn-id: r42263
2009-07-08 13:08:51 +00:00
Filippos Karapetis
d351c7b9cb
Only the kernel needs to be initialized before anything else, when saving/loading
...
svn-id: r42262
2009-07-08 10:44:25 +00:00
Filippos Karapetis
a764f274f8
Fixed saving/loading again (broken with the latest changes for game feature auto-detection)
...
svn-id: r42261
2009-07-08 10:35:51 +00:00
Filippos Karapetis
62499054a0
Some cleanup for the script debugger code:
...
- Renamed struct DebugState to ScriptState and r_amp_rest to restAdjust inside EngineState. Changed restAdjust to be a uint16 (actually it is a uint16, but it was being casted back and forth from an unsigned integer, so this clears up its type and size)
- Moved the script state variables from inside the run_vm() into the ScriptState struct, so that they can be accessed by the console commands and the script debugger all the time, and removed the weird isValid code
svn-id: r42260
2009-07-08 10:25:37 +00:00
Travis Howell
20ca572e45
Fix recent regression in vc61().
...
svn-id: r42252
2009-07-08 01:07:41 +00:00
Filippos Karapetis
a62b26ea80
Silenced the very chatty song iterator console messages by converting them to appropriate debug messages
...
svn-id: r42240
2009-07-07 20:43:27 +00:00
Filippos Karapetis
ee15f8f51a
Improved the LSL1VGA workaround after talking with waltervn
...
svn-id: r42239
2009-07-07 20:17:07 +00:00
Filippos Karapetis
802abfd8cb
Added a workaround for incorrect font references in LSL1VGA (which was the original purpose of the code removed in rev. 42219)
...
svn-id: r42238
2009-07-07 20:01:15 +00:00
Johannes Schickel
4dc454581c
Change all uses of FM-Towns/fm-towns to FM-TOWNS.
...
svn-id: r42235
2009-07-07 19:18:53 +00:00
Johannes Schickel
e35dd4df1c
Change "FM-Towns" to "FM-TOWNS" for consistency.
...
svn-id: r42232
2009-07-07 19:00:39 +00:00
Johannes Schickel
8c65d4d4a9
- Rename FontSJIS::enableShadow to enableOutline.
...
- Initialize outline to false by default in FontTowns.
svn-id: r42231
2009-07-07 18:17:30 +00:00
Johannes Schickel
62eebc3e17
- Added support for outlined FM-Towns ROM drawing
...
- Adapted KYRA to use that
svn-id: r42230
2009-07-07 18:10:35 +00:00
Eugene Sandulenko
9bdf1a2ab1
kFeatures800 -> kFeatures800x600 in order to have more meaningful name
...
svn-id: r42229
2009-07-07 17:11:29 +00:00
Johannes Schickel
ec2c7cfefa
Adapt KYRA to use the new Graphics::FontSJIS code.
...
svn-id: r42222
2009-07-07 14:22:39 +00:00
Filippos Karapetis
ab8c3d56b8
Removed the weird checks for a maximum resource number (the sci_max_resource_nr array), as it doesn't serve any real purpose and leads to strange errors: if a resource is found which is bigger than the maximum number, it will be remapped to an incorrect number from this check. This makes KQ5CD work properly again (resources would be remapped to incorrect resource numbers from this code as a result of not updating this array with the latest SCI version merges).
...
svn-id: r42219
2009-07-07 13:39:24 +00:00
Arnaud Boutonné
09efaaa1c9
Change SaveLoad_Playtoons case
...
svn-id: r42217
2009-07-07 12:51:21 +00:00
Filippos Karapetis
74670cc834
Removed the superfluous sci_version_types array (it's essentially the same as the versionNames array)
...
svn-id: r42216
2009-07-07 12:29:55 +00:00
Arnaud Boutonné
add4d124b2
- Add a new gametype for 'The Land of the Magic Stones'
...
- Add detection of the french version
- Add a new game feature for 800*600
svn-id: r42215
2009-07-07 12:03:27 +00:00
Arnaud Boutonné
a0ab8c9c0c
- Separate Playtoons gametypes from in GobEngine::initGameParts()
...
- Add a specific save/load class for Playtoons as some specific files need to be tested
svn-id: r42214
2009-07-07 11:58:22 +00:00
Filippos Karapetis
a9aaf56b3e
Cleanup: added an enum for the auto-detected features, removed the selectors which are only used for auto-detection from the convenience selector map and placed feature auto-detection in a separate function. Also, now the automatically detected graphics resources are shown in the console.
...
svn-id: r42212
2009-07-07 11:14:18 +00:00
Filippos Karapetis
d55f7e72d0
Added auto-detection for games with older headers for script blocks, and removed game flag GF_SCI0_OLD
...
svn-id: r42211
2009-07-07 10:28:05 +00:00
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