Commit Graph
7940 Commits
Author SHA1 Message Date
Max Horn 4755fcb130 SCI: got rid of EngineState::savegame_version; some cleanup
svn-id: r40713
2009-05-19 00:33:48 +00:00
Max Horn 091b347a7e SCI: Init the diff .#&$ EngineState::flags field in the constructor and when loading -- fixes many weird crashes upon loading (lesson to be learned: if you add fields to a class, then (a) init it in the construtor and (b) if the class support serializing, make sure the new field is handled when saving/loading :-)
svn-id: r40712
2009-05-19 00:02:44 +00:00
Max Horn 8add60bf8c SCI: Cleanup/paranoia checks
svn-id: r40711
2009-05-19 00:02:10 +00:00
Max Horn a652e1ae3d SCI: Added FIXME
svn-id: r40695
2009-05-18 18:16:01 +00:00
Max Horn b0c1cf52e0 SCI: Got rid of EngineState::execution_stack_pos; overally, the resulting code should be even stricter in detecting invalid VM stack access (and some bugs when loading saves might be fixed now...)
svn-id: r40694
2009-05-18 18:15:45 +00:00
Filippos Karapetis 4ed457850a Removed a leftover simple_said define
svn-id: r40692
2009-05-18 15:21:24 +00:00
Max Horn e0366f00bc SCI: Removed SCI_SIMPLE_SAID_CODE and the associated heavily bitrotted code
svn-id: r40691
2009-05-18 15:07:51 +00:00
Max Horn 790e235ae1 SCI: Removed ENTRY_IS_VALID macro
svn-id: r40690
2009-05-18 15:07:31 +00:00
Max Horn 9da07f21fe SCI: cleanup
svn-id: r40689
2009-05-18 15:07:04 +00:00
Max Horn 99713ca7fa SCI: Tweaks, cleanup
svn-id: r40688
2009-05-18 12:36:04 +00:00
Max Horn a0b6f21a1a SCI: Fixed Table::initTable to invoke _table.clear()
svn-id: r40687
2009-05-18 12:35:42 +00:00
Max Horn 62876a5ad5 SCI: Changed SegManager to not pre-allocate _heap entries (leave the memory management to Common::Array)
svn-id: r40686
2009-05-18 12:35:18 +00:00
Max Horn 5170acd00c SCI: Removed the unused member SegManager::gc_mark_bits; changed some int params to SegmentId
svn-id: r40685
2009-05-18 12:34:56 +00:00
Max Horn f594562745 SCI: Added a FIXME to graph_save_box
svn-id: r40684
2009-05-18 12:34:25 +00:00
Max Horn fc9096ba1d SCI: Replaced SegManager::getHeap() by Script::getHeap()
svn-id: r40683
2009-05-18 12:34:03 +00:00
Johannes Schickel dd12c0d06a Oops didn't mean to remove new line from this format string.
svn-id: r40682
2009-05-18 11:57:02 +00:00
Johannes Schickel 3406790cc3 Don't print __FILE__,__LINE__ in *_list related debug output, it would only print klists.cpp and the according line anyway.
svn-id: r40681
2009-05-18 11:56:00 +00:00
Johannes Schickel 220fe60424 Fix some error/warning calls. (might need some review, from someone familiar with SCI)
svn-id: r40680
2009-05-18 11:53:04 +00:00
Filippos Karapetis ecd893ca48 Fixed incorrect order of parameters in the workaround debug message shown for LSL6
svn-id: r40678
2009-05-18 09:59:54 +00:00
Filippos Karapetis 76ad23ddbd Added a workaround for LSL6, thanks to waltervn's comments
svn-id: r40677
2009-05-18 09:07:31 +00:00
Filippos Karapetis 1e547f320c Removed the unused file and line parameters from the list and list node lookup functions, and removed the LOOKUP_LIST and LOOKUP_NODE defines. Also, disabled the unused LOOKUP_SPECIES define
svn-id: r40676
2009-05-18 08:28:04 +00:00
Filippos Karapetis 1239949ef2 Changed errors to be fatal, as most of them are fatal conditions. Some of them have been changed to warnings for now, as they occur in certain games (e.g. SQ4 floppy, SQ4 CD and KQ5 CD)
svn-id: r40675
2009-05-18 07:55:13 +00:00
Walter van Niftrik 7c5fbf83f5 SCI: LSL6 invalid selector workaround is now always active, not just at
startup. Added support for mirrored pic drawing.

svn-id: r40648
2009-05-17 13:37:54 +00:00
Travis Howell c0a8295919 Add more game demos.
svn-id: r40642
2009-05-17 10:40:28 +00:00
Travis Howell dc55a54365 Add more game demos.
svn-id: r40635
2009-05-17 07:22:07 +00:00
Walter van Niftrik f010eef04e SCI: Turned some relatively harmless yet frequently occurring warnings into debug messages.
svn-id: r40629
2009-05-16 14:24:12 +00:00
Walter van Niftrik 7f5bd2447e SCI: Allow the VM to continue when the invalid selector access occurs at the start of LSL6.
svn-id: r40627
2009-05-16 12:46:59 +00:00
Willem Jan Palenstijn a897ee239d Fix compilation
svn-id: r40611
2009-05-15 14:23:00 +00:00
Filippos Karapetis 87e8f94fde - Moved all the files out of /sci/scicore and into /sci
- Moved /scicore/sciconsole.h into /engine, and renamed /engine/scriptconsole.cpp to /engine/sciconsole.cpp

svn-id: r40608
2009-05-15 14:07:45 +00:00
Filippos Karapetis ce29fec17a Removed unused defines and merged several different compression errors
svn-id: r40607
2009-05-15 13:52:22 +00:00
Filippos Karapetis 78bf8c490d Reverted the SQ5 change introduced with commit #40574, as this makes the mouse cursor invisible in games which have multicolored cursors
svn-id: r40605
2009-05-15 12:41:27 +00:00
Filippos Karapetis 6ef7b6e1f4 Merged the 3 Huffman trees into decompressor.cpp, and changed their layout to be a bit more readable
svn-id: r40604
2009-05-15 12:39:58 +00:00
Max Horn d8d18d14ef SCI: Keep a single copy of the versionNames array; this fixes warning about it (well, one of its many copies) being unused
svn-id: r40600
2009-05-15 09:29:03 +00:00
Max Horn 9c44705f05 SCI: Got rid of SEG_ID/SCRIPT_ID
svn-id: r40599
2009-05-15 09:28:31 +00:00
Max Horn 8f0b776afb SCI: Added SegManager::getScriptIfLoaded() method
svn-id: r40598
2009-05-15 09:27:39 +00:00
Max Horn 75c0d719c9 SCI: Turned several script related SegManager methods into Script methods
svn-id: r40597
2009-05-15 09:27:07 +00:00
Filippos Karapetis 565cfa074d Simplified SCI versions to be SCI version generations, and fixed some game entries in the process. Also, added a sanity check for invalid game entries
svn-id: r40596
2009-05-15 09:04:21 +00:00
Max Horn bd2e21c97a SCI: Fixed restoring scripts when loading a SCI 1.1 savestate
svn-id: r40582
2009-05-14 23:39:36 +00:00
Max Horn d2dfa0ac11 SCI: cleanup
svn-id: r40581
2009-05-14 23:39:16 +00:00
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 ad1563e5dc SCI: Stop SCI1.1 games from complaining about an 'invalid' savedir by setting the savedir string to the only value our kValidPath considers valid, namely '/'
svn-id: r40579
2009-05-14 23:10:04 +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 61d9a42c56 Fixed the detection entry for SQ3 Amiga, and added a special case for cursor hiding in SQ5
svn-id: r40574
2009-05-14 21:51:36 +00:00
Filippos Karapetis 7fd6a22d72 Cleanup
svn-id: r40573
2009-05-14 21:47:38 +00:00
Willem Jan Palenstijn 185eeb4695 Only load used palette entries with SCI1/11
svn-id: r40571
2009-05-14 21:34:30 +00:00
Filippos Karapetis 42633c9865 Fixed SQ3 Amiga by hardcoding the resource version (automatic resource version detection fails on this one)
svn-id: r40568
2009-05-14 19:58:42 +00:00
Filippos Karapetis bf5e4431d8 Fixed regression in EGA games
svn-id: r40567
2009-05-14 19:42:46 +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