Commit Graph
7940 Commits
Author SHA1 Message Date
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
Max Horn b3ace666d0 SCI: Renamed GF_SCI0_BEFORE_* macros to GF_FOR_SCI0_BEFORE_* (to emphasise that those are not Game Features); also moved their definitions into detection.cpp, to minimize the risk that they are accidentally used by other code
svn-id: r40557
2009-05-14 11:30:21 +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
Walter van Niftrik 9604e99736 SCI: Fixes a crash when loading SCI1.1 views without palette.
svn-id: r40545
2009-05-13 23:08:36 +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
Johannes Schickel f0182121f7 Fix some variable may be used uninitialized warnings.
svn-id: r40528
2009-05-13 18:12:17 +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
Filippos Karapetis 9cdb4c36a7 Fixed regression in SCI1 games from commit #40518
svn-id: r40523
2009-05-13 16:22:26 +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 e280f301e7 Rearranged all the different version checks based on SCI version in versions.h, and added some WIP and unused game flags, which will hopefully replace the SCI version numbers
svn-id: r40509
2009-05-12 20:12:49 +00:00
Filippos Karapetis 5e83e27bf6 Performed some cleanup on the different version checks
svn-id: r40499
2009-05-12 18:57:28 +00:00
Johannes Schickel a586017bea Fall back to plain OPL2 emulation, when Dual OPL2 isn't available.
svn-id: r40497
2009-05-12 18:45:17 +00:00
Johannes Schickel 4f0768b909 - Add support for selecting the OPL emulator being used (config entry: "opl_driver")
- Make MAME FM OPL the default emulator again
- Add GUI support for selecting the active OPL emulator
- Update themes

svn-id: r40496
2009-05-12 18:42:44 +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
Joost Peters b13a8090b2 set resource version for LSL6 low-res CD version as well + update language comment
svn-id: r40485
2009-05-12 12:57:03 +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 eec316443e SCI: Set resource version for LSL6 floppy (autodetection fails).
svn-id: r40483
2009-05-12 12:39:46 +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
Filippos Karapetis 1b8c5f483f Silenced MSVC warning about unsafe mix of byte and boolean
svn-id: r40471
2009-05-12 07:19:49 +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
Filippos Karapetis b9a026eb20 Merged find_dev() inside sfx_find_device()
svn-id: r40456
2009-05-11 17:08:31 +00:00
Filippos Karapetis ca52388f11 Console is a class, not a struct
svn-id: r40455
2009-05-11 17:07:38 +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