Commit Graph
4076 Commits
Author SHA1 Message Date
Filippos Karapetis b4126beea2 The third and fourth parameter in changePortBounds() are x2 and y2, not width and height
svn-id: r40805
2009-05-23 10:50:24 +00:00
Filippos Karapetis 2590511c7d Turned some errors into warnings, as they occur in KQ5CD
svn-id: r40804
2009-05-23 10:22:27 +00:00
Filippos Karapetis 3811df7aca Fixed the incorrectly placed views in the KQ6 intro, by reintroducing port bounds in the graphics resource manager and removing two relevant hacks
svn-id: r40803
2009-05-23 10:07:01 +00:00
Filippos Karapetis ef4947060e Some initial WIP code on kDoAudio (still not working)
svn-id: r40790
2009-05-22 22:19:15 +00:00
Walter van Niftrik 36fe37443d SCI: Added support for KQ6 movies.
svn-id: r40774
2009-05-21 22:03:23 +00:00
Max Horn b431254070 SCI: Removed the 'save_dir' gui hack
svn-id: r40772
2009-05-21 21:50:11 +00:00
Max Horn 4c17541276 SCI: got rid of vocabulary_lookup_sname
svn-id: r40771
2009-05-21 21:49:43 +00:00
Filippos Karapetis 4799cbf1c3 Removed the PREG, PSTK, IS_NULL_REG and REG_EQ defines
svn-id: r40767
2009-05-21 17:18:46 +00:00
Filippos Karapetis fddd2a2214 Slight cleanup to kGetTime()
svn-id: r40754
2009-05-21 10:34:13 +00:00
Max Horn bba91075bf removed trailing whitespaces
svn-id: r40742
2009-05-20 17:53:31 +00:00
Max Horn 4f55f1e730 SCI: Moved code related to loading/setting up kernel function names from vocab_debug.cpp to engine/kernel.cpp
svn-id: r40741
2009-05-20 17:52:49 +00:00
Max Horn 4c786a44c9 SCI: Changed EngineState::opcodes to a Common::Array (maybe we shold just remove the relevant code completely, though, it seems useless, esp. as long as we hardcode the way we interpret every opcode
svn-id: r40740
2009-05-20 17:52:33 +00:00
Max Horn 7d54385dea SCI: Moved some private decls from kernel.h to kernel.cpp; removed pointless (and incorrect) fallback code in k_Unknown
svn-id: r40739
2009-05-20 17:52:12 +00:00
Max Horn f5f48fff3a SCI: Moved the few kernel functions that were in kernel.cpp to a new file kmisc.cpp
svn-id: r40738
2009-05-20 17:51:55 +00:00
Walter van Niftrik a1364e37f7 SCI: Some debugger fixes and cleanup.
svn-id: r40732
2009-05-19 20:40:21 +00:00
Walter van Niftrik 4d59f620f9 SCI: Changed K_FILEIO_FILE_EXISTS to check regular files too.
svn-id: r40724
2009-05-19 11:30:51 +00:00
Max Horn 613ca85bf9 SCI: Doxygenified a few comments
svn-id: r40720
2009-05-19 11:22:06 +00:00
Walter van Niftrik df3357159c SCI: Added some stubs for LSL6CD (lores).
svn-id: r40719
2009-05-19 02:10:58 +00:00
Max Horn 136fcb3810 SCI: Introduce a new subclass StringFrag of MemObject (does nothing right now); switched MemObject to subclass Common::Serializable
svn-id: r40714
2009-05-19 00:34:10 +00:00
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
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
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
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
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