Commit Graph
4076 Commits
Author SHA1 Message Date
Max Horn 7f2a146597 SCI: Added a paranoia check to find_unique_script_block which causes us to bail out if we are about to get stuck in an endless loop
svn-id: r40580
2009-05-14 23:10:22 +00:00
Max Horn cd063606a0 SCI: Changed sci_obj_* enum value names to uppercase, in accordance with our code formatting conventions
svn-id: r40578
2009-05-14 23:09:30 +00:00
Max Horn a3efc5611c Fixed various GCC 4.2 warnings, among them an actual longstanding bug (3 years :) in the quicktime midi code
svn-id: r40577
2009-05-14 23:09:04 +00:00
Walter van Niftrik 67ce8fee85 SCI: A provisional fix for the "invalid selector" problem in KQ6 and other
SCI1.1 games.

svn-id: r40575
2009-05-14 22:33:31 +00:00
Filippos Karapetis 443aacee79 Added a parameter to the graphics resource manager to determine if the running SCI1 game is VGA or not (better than modifying the detected SCI resource version)
svn-id: r40566
2009-05-14 19:33:03 +00:00
Filippos Karapetis 97bdf32a59 Added the EGA version of Longbow, and partially reverted my previous commit. SCI1 EGA games should *really* be working now
svn-id: r40565
2009-05-14 18:55:30 +00:00
Filippos Karapetis d5e1ca4630 - Added a new game flag to distinguish SCI1 EGA versions
- Fixed the wrong detected versions of Laura Bow 2
- Changed some code regarding the resource loader of Jones in the Fast Lane (which is still non-functional)

svn-id: r40564
2009-05-14 17:50:09 +00:00
Filippos Karapetis 3ab81fa502 Fixed regression with SCI1.1 games
svn-id: r40563
2009-05-14 17:06:47 +00:00
Filippos Karapetis 4a9e7e4393 Replaced the SCI_VERSION_FTU_DOSOUND_VARIANT_2 version check with the game feature flag GF_SCI1_NEWDOSOUND
svn-id: r40561
2009-05-14 13:51:42 +00:00
Filippos Karapetis f75c950457 - Replaced SCI_VERSION_FTU_LOFS_ABSOLUTE with the GF_SCI1_LOFSABSOLUTE game flag
- Moved the version defines outside of versions.h

svn-id: r40559
2009-05-14 12:38:50 +00:00
Filippos Karapetis e03fba03b5 Cleanup
svn-id: r40558
2009-05-14 11:46:02 +00:00
Walter van Niftrik f64df361e0 SCI: Message: fix K_MESSAGE_SIZE
svn-id: r40556
2009-05-14 11:27:54 +00:00
Filippos Karapetis 4ec6c4127f Added a feature flag for the SCI1.1 behavior of kSetCursor() in Eco 1 and KQ5 CD. Some cleanup
svn-id: r40554
2009-05-14 11:11:56 +00:00
Filippos Karapetis 891a8fae05 - Removed SCI_VERSION_FTU_NEW_GETTIME
- Added defines for SCI0 flags, to simplify game entries
- Removed the leftover version_lock_flag from EngineState

svn-id: r40553
2009-05-14 10:24:39 +00:00
Filippos Karapetis 999d46b241 Started using game-specific flags and removed/replaced some SCI version checks with flags.
- The SCI0 new script header and the angles check have been replaced by the GF_SCI0_OLD flag
- The SCI0 new drawpic parameter and the new priority check have been replaced by the GF_SCI0_OLDGFXFUNCS flag
- Removed the code which retries to use the newer script header in SCI0 games if the detected one is wrong, as that case should be covered by the GF_SCI0_OLD flag
- Removed the leftover min_version and max_version variables from gamestate
- Cleaned up kGetTime() a bit

svn-id: r40552
2009-05-14 09:12:27 +00:00
Filippos Karapetis 2ca7605050 - Enabled the code which puts the text inside the screen if it doesn't fit for all SCI versions
- Removed the check for the mechanism to resume suspended songs (it's no longer used)

svn-id: r40551
2009-05-14 07:28:06 +00:00
Filippos Karapetis 3117a8d87f Removed the hack used to check for the existence of the CantBeHere() selector
svn-id: r40549
2009-05-14 07:14:08 +00:00
Filippos Karapetis 41af51d645 Simplified and re-enabled the debug code that shows pixmaps on screen and moved sciprintf() to tools.cpp
svn-id: r40542
2009-05-13 21:22:53 +00:00
Walter van Niftrik e35b77e0a7 SCI: Message: Added a few more subfunctions; cleanup.
svn-id: r40529
2009-05-13 19:03:12 +00:00
Filippos Karapetis e940bcff23 - Simplified SCI version detection a bit and clarified the different version feature flags (not used yet)
- Removed the version verification functions (they were only used for two specific cases, but the SCI executable reader is able to detect the exact SCI game version anyway, so there is no point in having these)
- Removed the empty GameFlags structure and replaced it with a 32-bit integer instead

svn-id: r40524
2009-05-13 16:52:41 +00:00
Max Horn 37a0157c97 SCI: cleanup
svn-id: r40518
2009-05-12 23:32:32 +00:00
Max Horn 05c3c6ccb3 SCI: Replaced SFX_OK/SFX_ERROR by Common::Error, and got rid of sfx/sfx.h
svn-id: r40517
2009-05-12 23:31:55 +00:00
Max Horn 7f29670843 SCI: Changed object / script local vars storage to use a Common::Array
svn-id: r40515
2009-05-12 23:30:42 +00:00
Max Horn 0255cd0213 SCI: Removed sci_memory.h/.cpp
svn-id: r40514
2009-05-12 23:30:10 +00:00
Filippos Karapetis 5e83e27bf6 Performed some cleanup on the different version checks
svn-id: r40499
2009-05-12 18:57:28 +00:00
Walter van Niftrik eb8ddbe8f4 SCI: Fixed a valgrind warning.
svn-id: r40492
2009-05-12 14:58:44 +00:00
Filippos Karapetis 2e59107a42 Removed some unused code
svn-id: r40486
2009-05-12 13:29:32 +00:00
Walter van Niftrik e7184402fb SCI: Sound: Send signal immediately for currently unsupported fade-and-continue.
svn-id: r40484
2009-05-12 12:56:22 +00:00
Walter van Niftrik c299dbeb26 SCI: Merged Message() and GetMessage(). Set SCI1.1 to use SCI1 kernel table (for now).
svn-id: r40481
2009-05-12 12:31:09 +00:00
Walter van Niftrik 7f587a9d6b SCI: Message: Added resource-internal recursion (currently untested).
svn-id: r40478
2009-05-12 11:28:15 +00:00
Filippos Karapetis a5a1aa5542 - Slight cleanup of c_sfx_01_header()
- "words" -> "kernelwords"

svn-id: r40474
2009-05-12 08:22:20 +00:00
Filippos Karapetis 63fe11702c Moved the "suffixes" and "words" console commands to ScummVM's debug console
svn-id: r40473
2009-05-12 08:14:24 +00:00
Filippos Karapetis 80254b79cc Replaced sci_hexdump() with Common::hexdump()
svn-id: r40472
2009-05-12 07:21:44 +00:00
Willem Jan Palenstijn 5f3938d615 Fix MSVC compilation (cast const away explicitly).
Patch by Kerbox.

svn-id: r40469
2009-05-11 21:05:48 +00:00
Max Horn d09037fa6c SCI: Hacked stuff up so that debugger commands also print on the GUI console
svn-id: r40460
2009-05-11 18:18:43 +00:00
Max Horn 5481806635 SCI: Hook FreeSCI console commands into the ScummVM console (incomplete as of now, because printf output is not yet redirect to the GUI console)
svn-id: r40459
2009-05-11 18:02:48 +00:00
Filippos Karapetis e3e3fbd7d1 Moved the "selectors" and "syscalls" console commands to ScummVM's debug console (as commands "selectors" and "kernelnames", respectively)
svn-id: r40457
2009-05-11 17:10:36 +00:00
Max Horn 1949133d22 SCI: Simplified the Table class, by making it use an Common::Array internally. Increased savegame version, breaking compatibility to the previous one -- sorry for that, but some of my previous changes accidentally messed up the table syncing, resulting in messed up savegames anyway; these breakages should be fixed with this commit
svn-id: r40453
2009-05-11 13:32:00 +00:00
Max Horn d66d1ffab3 SCI: Replace global vars cmd_paramlength & cmd_params by Common::Array<cmd_param_t> param to console hook commands
svn-id: r40452
2009-05-11 13:31:37 +00:00
Max Horn 7c75e8e2ef SCI: Reduced header deps
svn-id: r40451
2009-05-11 13:31:17 +00:00
Walter van Niftrik 45ceef870a SCI: Message: Fixed a bug when game requests message with seq != 1.
svn-id: r40450
2009-05-11 10:56:59 +00:00
Walter van Niftrik 4d55f8b8d7 SCI: Minor changes to Message(). Some of the text in KQ6 floppy should now be visible.
svn-id: r40441
2009-05-10 22:25:43 +00:00
Max Horn 98fb95589c SCI: Changed EngineState::pics to a Common::Array
svn-id: r40434
2009-05-10 20:13:43 +00:00
Max Horn 14aa9d70ac SCI: Replaced Cplain odeBlock array in class Script by a Common::Array<CodeBlock>
svn-id: r40433
2009-05-10 20:13:12 +00:00
Max Horn 019f87fd1b SCI: Changed object list in Script instances to use Common:::Array
svn-id: r40431
2009-05-10 19:17:51 +00:00
Filippos Karapetis 7cd07d9581 Cleanup
svn-id: r40423
2009-05-10 14:57:27 +00:00
Filippos Karapetis d34d5f56b6 Cleanup
svn-id: r40422
2009-05-10 14:04:56 +00:00
Filippos Karapetis 53f24f3e43 Applied patch by waltervn to remove the length parameter from getText() and fixed a silly bug in getLength()
svn-id: r40421
2009-05-10 13:47:38 +00:00
Filippos Karapetis 3592801a57 Objectified and cleaned up the MessageState class
svn-id: r40419
2009-05-10 13:15:14 +00:00
Filippos Karapetis 3e9ca1a638 Reverted commit #40413
svn-id: r40415
2009-05-10 11:08:50 +00:00