Commit Graph

1287 Commits

Author SHA1 Message Date
Johannes Schickel
71c9700420 Fix compilation of the SCI engine. It seems that all of the SCI header files I touched (and probably others I luckily didn't touch) seem to assume that files including them will supply needed types. That looks like a major issue in SCI. Someone with knowledge of the SCI code should look into this and cleanup the includes of *all* SCI headers.
svn-id: r43459
2009-08-17 07:36:08 +00:00
Filippos Karapetis
c38f58598b - Simplified some functions to accept only the parts of the EngineState they need as parameters, instead of the whole EngineState
- Moved the class table in the Segment manager - it's the only class using it directly
- Removed the sci11 flag from save games (we already know this, we don't need to store it)
- Moved script_get_segment() and get_class_address() inside the segment manager class
- Removed the script_locate_by_segment wrapper
- Simplified script_lookup_export() a lot by removing some paranoia checks
- Added some WIP code for automatically determining the game id in the fallback detector (still not working)
- General cleanup

svn-id: r43458
2009-08-17 05:55:21 +00:00
Walter van Niftrik
2ac6e260b6 SCI: Fix whitespace.
svn-id: r43451
2009-08-16 19:20:09 +00:00
Walter van Niftrik
83e541900d SCI: Fix regression in previous commit (QFG2).
svn-id: r43450
2009-08-16 19:19:26 +00:00
Walter van Niftrik
00f4794c0a SCI: Stage 1 of the game detection overhaul. The end goal is to autodetect
as much as possible. All SCI_VERSION_* information was removed from
detection.cpp (much of it was incorrect anyway).

svn-id: r43449
2009-08-16 19:18:19 +00:00
Walter van Niftrik
17e7f46501 SCI: Add missing versions to exe version parsing
svn-id: r43408
2009-08-15 12:17:23 +00:00
Walter van Niftrik
5709e524f9 SCI: Rename sci_version_t to SciVersion
svn-id: r43407
2009-08-15 12:09:47 +00:00
Walter van Niftrik
f99932b72a SCI: Added enum for map and volume versions. Removed res_version setting from
detection.cpp (should be detectable). Cleanup.

svn-id: r43390
2009-08-15 00:28:59 +00:00
Walter van Niftrik
65e9ae163f SCI: Added a crude speed throttler.
svn-id: r43289
2009-08-11 20:18:15 +00:00
Walter van Niftrik
353e9fb36a SCI: Turn off logging in debugger.
svn-id: r43268
2009-08-11 12:57:51 +00:00
Walter van Niftrik
eaed412152 SCI: Added several debug command aliases.
svn-id: r43229
2009-08-10 21:30:16 +00:00
Walter van Niftrik
7dfa30d3fe SCI: Fix vmvars debug command.
svn-id: r43219
2009-08-10 18:59:59 +00:00
Walter van Niftrik
867b1c2b4d SCI: Fix warnings.
svn-id: r43218
2009-08-10 18:43:15 +00:00
Walter van Niftrik
dd9e569325 SCI: Improved multilanguage support for SCI1 and SCI1.1.
svn-id: r43217
2009-08-10 18:37:47 +00:00
Walter van Niftrik
6dc54e4496 SCI: Added detection entries for French versions of Eco Quest 1/2 (reported
by Strangerke).

svn-id: r43190
2009-08-10 01:08:20 +00:00
Max Horn
50cd2750cc SCI: Avoid using perror (it's not portable)
svn-id: r42866
2009-07-28 22:28:40 +00:00
Willem Jan Palenstijn
e408870260 Use new Common::String::printf
svn-id: r42744
2009-07-25 10:26:17 +00:00
Willem Jan Palenstijn
3c8e328e5c SCI: check shouldQuit() in main loop
svn-id: r42609
2009-07-19 10:50:14 +00:00
Willem Jan Palenstijn
8cb1cbfa7a SCI: Fix breakpoints
svn-id: r42599
2009-07-18 22:46:07 +00:00
Willem Jan Palenstijn
57504cb699 SCI: Fix disasm_addr option parsing
svn-id: r42598
2009-07-18 22:19:07 +00:00
Willem Jan Palenstijn
d9c2544a4c SCI: don't leave debugger after bt
svn-id: r42589
2009-07-18 13:05:39 +00:00
Willem Jan Palenstijn
a1bb715611 SCI: Fix stepping in debugger
svn-id: r42587
2009-07-18 12:51:12 +00:00
Filippos Karapetis
645e6baa07 Added a proper fix for Pepper (the previous one caused regressions in KQ6)
svn-id: r42533
2009-07-16 12:43:42 +00:00
Filippos Karapetis
52ed2fe04c Added missing information for the newly-added version of Pepper
svn-id: r42525
2009-07-16 08:21:06 +00:00
Filippos Karapetis
efc5f80f51 Added the French version of KQ5 floppy (bug report #2812611)
svn-id: r42524
2009-07-16 08:17:38 +00:00
Filippos Karapetis
00dbbedbad Added a detection entry for Pepper's Adventures in Time, and fixed an issue with _gfxop_set_pic(), which was causing crashes in that game
svn-id: r42523
2009-07-16 08:13:08 +00:00
Filippos Karapetis
31a0c80905 Moved the kernel and the vocabulary outside of the engine state (they're static data, which never changes during a game)
svn-id: r42398
2009-07-11 23:45:54 +00:00
Filippos Karapetis
116d225411 Changed an incorrect warning back to scidprintf - the relevant message is for testing only
svn-id: r42394
2009-07-11 19:38:41 +00:00
Filippos Karapetis
f0892cdcbe Some work on QFG1VGA (looks like a mix of SCI1 and SCI1.1)
svn-id: r42393
2009-07-11 19:00:56 +00:00
Filippos Karapetis
4f0888b8b6 Removed the version parameter from GfxResManager
svn-id: r42387
2009-07-11 17:25:49 +00:00
Filippos Karapetis
848b9cda03 If we fail to auto-detect either the volume or the map version, set the one to be equal to the other
svn-id: r42386
2009-07-11 16:07:14 +00:00
Willem Jan Palenstijn
8dd3492194 SCI: don't let TimerSongIterator loop forever, and don't immediately
signal completion when starting it. This fixes a sync issue with
the departing spaceship at the start of SQ4CD (after the intro).

svn-id: r42385
2009-07-11 15:00:40 +00:00
Travis Howell
9594beb39f Only error out, if checkStaticSelectorNames() fails.
svn-id: r42376
2009-07-11 07:03:28 +00:00
Filippos Karapetis
2b5fac58d5 Applied patch 2818733 - "SCI: Timer iterator for audio resources played via doSound"
svn-id: r42375
2009-07-11 06:53:39 +00:00
Filippos Karapetis
28dd343e08 Applied slightly modified patch 2819002 - "SCI: resource-view-patch on SQ5/German fix"
svn-id: r42374
2009-07-11 06:43:01 +00:00
Filippos Karapetis
4f2b857982 Removed an invalid detection entry
svn-id: r42373
2009-07-11 06:34:25 +00:00
Filippos Karapetis
0b47fa50ae Applied a slightly modified patch from clone2727 which adds static selector names to some demos which are missing them (KQ4, LSL1, LSL3, Iceman and Christmas1992)
svn-id: r42372
2009-07-11 06:33:19 +00:00
Filippos Karapetis
763c6c8ca1 Fixed regression in the script parser from commit 42260
svn-id: r42371
2009-07-11 06:19:29 +00:00
Filippos Karapetis
dfe8ec9be0 Applied patch #2819665 - "SCI: cell palette fix for QfG3/SQ5/etc."
svn-id: r42345
2009-07-10 18:53:40 +00:00
Johannes Schickel
e8e9b88227 Oops specify the correct revsision number in the fixme.
svn-id: r42306
2009-07-09 16:24:59 +00:00
Johannes Schickel
5d0d67e574 Add fixme about SCI32 specific code.
svn-id: r42305
2009-07-09 16:23:22 +00:00
Johannes Schickel
1ac515c629 By comparing the commit log of r42300, it seems that "off" was renamed to "lastDirectoryOffset". I changed the SCI32 specific code to use that now. I can't assure this is anyhow correct, so anyone with knowledge of this code please check it.
svn-id: r42303
2009-07-09 16:16:08 +00:00
Johannes Schickel
0aa83f14c7 Fix wrong format arugment.
svn-id: r42301
2009-07-09 15:59:20 +00:00
Filippos Karapetis
717de7800c Applied patch #2818845 - "SCI: resource.map detection for SCI1/1.1 fixed", with some slight formatting changes
svn-id: r42300
2009-07-09 15:54:18 +00:00
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
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
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