Torbjörn Andersson
6372a3f527
Surely this function is supposed to return -2 when the memory allocation
...
*fails*, not when it succeeds...?
svn-id: r40510
2009-05-12 20:13:42 +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
Torbjörn Andersson
0cc6b88f58
When source and destination are the same, there is no need to strcpy(). In fact
...
it may even be harmful when source and destination overlap. (This happens when
loading savegames.)
svn-id: r40508
2009-05-12 20:03:10 +00:00
Johannes Schickel
536bdeacd4
Clarification of a comment.
...
svn-id: r40507
2009-05-12 19:58:05 +00:00
Torbjörn Andersson
9c18a12fa0
Fixed what looks like an obvious error in loadSong() that Valgrind caught.
...
svn-id: r40504
2009-05-12 19:24:11 +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
Johannes Schickel
c59f9a9670
Cleanup.
...
svn-id: r40491
2009-05-12 14:55:45 +00:00
Johannes Schickel
09224573f5
Formatting.
...
svn-id: r40490
2009-05-12 14:43:57 +00:00
Johannes Schickel
76984ded25
Add proper error checking in file parsing code.
...
svn-id: r40489
2009-05-12 14:35:50 +00:00
Johannes Schickel
8524bf3a25
Change script file loading code to use Common::IFFParser instead of a self written IFF reader.
...
svn-id: r40488
2009-05-12 14:18:08 +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
Johannes Schickel
8d15765059
Fix strncpy usage.
...
svn-id: r40482
2009-05-12 12:35:40 +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
Johannes Schickel
a79716e367
Cleanup.
...
svn-id: r40480
2009-05-12 12:30:59 +00:00
Johannes Schickel
cf3ea8eec2
Cleanup.
...
svn-id: r40479
2009-05-12 12:20:45 +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
Paul Gilbert
4aedfc75f8
Changed the hardcoded 'Parler de..' string in the conversation dialog to use the correct language string
...
svn-id: r40477
2009-05-12 10:20:12 +00:00
Eugene Sandulenko
17a68490be
Replace verb numbers with constants in selectVerb() call
...
svn-id: r40476
2009-05-12 10:02:18 +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
Eugene Sandulenko
565c23b601
Fix bug #1946262 : "LSL1: Age Verification answer input not working"
...
svn-id: r40468
2009-05-11 20:58:55 +00:00
Florian Kagerer
0561caa447
LOL: - implemented olol_paletteFlash()
...
svn-id: r40466
2009-05-11 20:44:43 +00:00
Eugene Sandulenko
d5b9437fb3
Fix bug #2055836 : "FW: Music is not restarted when loading a saved game"
...
svn-id: r40465
2009-05-11 19:31:55 +00:00
Torbjörn Andersson
2ba1da41e8
Silenced warning.
...
svn-id: r40464
2009-05-11 19:04:06 +00:00
Florian Kagerer
03dffbcc18
LOL: - implemented inventory screen status icons
...
svn-id: r40463
2009-05-11 19:03:40 +00:00
Eugene Sandulenko
efbc0f139b
Fix bug #2678272 : "FT: Russian version crashes on windows and psp"
...
svn-id: r40461
2009-05-11 18:34:54 +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
Gregory Montoir
2fd66d8eae
some cleanup :
...
- separated instruction table parsing from instruction execution
- added a few debug calls to monitor game flags changes
- some variables/functions renaming
svn-id: r40454
2009-05-11 14:04:44 +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
Florian Kagerer
3d13c3ea36
LOL: - fix last commit
...
svn-id: r40443
2009-05-10 23:53:05 +00:00
Florian Kagerer
670eb3badf
LOL: - implemented rest party button
...
- made button processing code more accurate
svn-id: r40442
2009-05-10 23:08:32 +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
Johannes Schickel
7604301c30
Support target names of any length.
...
svn-id: r40438
2009-05-10 21:27:57 +00:00
Willem Jan Palenstijn
2a485abd6d
Make static buffer larger.
...
This fixes crashes with AGI target names like goldrush-amiga.
svn-id: r40437
2009-05-10 21:20:33 +00:00