Max Horn
1453093391
SCI: Cleanup GfxView code (formatting etc.); also insert some asserts to protect scalingX/Y arrays
...
svn-id: r50425
2010-06-28 11:21:23 +00:00
Max Horn
793d482f4f
SCI: Optimized GfxScreen::scale2x a bit
...
svn-id: r50424
2010-06-28 11:21:07 +00:00
Max Horn
7e0240ab14
SCI: Comment cleanup
...
svn-id: r50423
2010-06-28 11:20:51 +00:00
Max Horn
2c01d10a36
SCI: Remove GfxView::getLoopInfo; add assert to GfxView::getCelInfo
...
The return value of GfxView::getCelInfo was used virtually everywhere
without a check for it being non-NULL. Hence instead of returning
NULL when the loop count is zero, it makes more sense to assert out
(instead of a segfault, or worse, random data being used).
svn-id: r50422
2010-06-28 11:20:33 +00:00
Max Horn
9f48a37671
SCI: Add const qualifiers to many GfxView methods and their return values.
...
This helps to ensure proper data encapsulation.
Also reformatted some overlong comments to 80 chars per line, and
fixed some other code formatting issues.
svn-id: r50421
2010-06-28 11:20:14 +00:00
Max Horn
db2d41a433
SCI: Make src param of GfxScreen::scale2x const
...
svn-id: r50420
2010-06-28 11:19:45 +00:00
Max Horn
4016bdfd27
SCI: cleanup
...
svn-id: r50419
2010-06-28 11:19:27 +00:00
Martin Kiewitz
22a8b2236e
SCI: set volume all the time, fixes volume being 0 after fading in sci0
...
svn-id: r50418
2010-06-28 10:48:09 +00:00
Martin Kiewitz
caa4479bdf
SCI: changed the way setVolume works for sci0 back to the way it was from r50414, because adlib driver doesn't support channel volume changes for sci0 games, fixes fading in those games
...
svn-id: r50417
2010-06-28 10:36:10 +00:00
Martin Kiewitz
10a9dfc0d7
SCI: added uninit workaround for lsl3 - when accessing set volume menu the first time sound got muted before (because a uninitialized temp was used to do it, would have been 's' in sierra sci)
...
svn-id: r50416
2010-06-28 10:15:13 +00:00
Martin Kiewitz
92cc16e6a5
SCI: reordering and cleanup, removing debug code from sci0 mix-code
...
svn-id: r50415
2010-06-28 10:00:12 +00:00
Martin Kiewitz
e4cb2703ca
SCI: implementing real setVolume() support, fixing some fading in sci1 games (like pq3 intro)
...
svn-id: r50414
2010-06-28 09:22:57 +00:00
Martin Kiewitz
253036ec4d
SCI: regression from implementing channel remapping and r50405 - center pitch wheels and hold pedal on init instead of unloadMusic(), fixes lsl5 piano scene
...
svn-id: r50413
2010-06-28 08:25:45 +00:00
Filippos Karapetis
52ddc711d0
SCI: separated the graphics initialization code a bit
...
- Moved all of the graphics initialization code on startup inside initGraphics()
- Moved all of the screen initialization (resolution, upscaled graphics etc) code inside GfxScreen()
svn-id: r50412
2010-06-28 08:18:55 +00:00
Martin Kiewitz
698f10611c
SCI: fix regression of r50405 - sq1vga right at the beginning - scripts are pausing sound and then sending manually commands afterwards
...
svn-id: r50411
2010-06-28 08:16:20 +00:00
Martin Kiewitz
31af2bfe32
SCI: show arguments on selector invoke breakpoint even when VM_DEBUG_SEND is not used, but in a compressed fashion
...
svn-id: r50410
2010-06-28 07:42:16 +00:00
Robert Špalek
76b8c33aaf
Fade palette in/out when entering/leaving a location
...
svn-id: r50409
2010-06-28 04:59:13 +00:00
Robert Špalek
d4a0c8a1ad
bugfix for the item fast-switching commit
...
svn-id: r50408
2010-06-28 04:16:00 +00:00
Robert Špalek
c7554c267e
Implement shortcuts for switching items in the inventory
...
slash: switch between the last held item and normal mouse
comma, period: replace the currently held item with the previous/next item in the inventory
Also, commented a bit better what happens when ESCAPE is present with respect to map
programs and cut-scenes.
svn-id: r50407
2010-06-28 04:04:16 +00:00
Filippos Karapetis
048ceb73d3
SCI: Removed the hack for loading games from the launcher from run_vm(). This is now done on startup. This should fix loading from the launcher for LSL6
...
svn-id: r50406
2010-06-27 23:20:08 +00:00
Martin Kiewitz
a887d4898d
SCI: tell midiparser that he lost ownership of channels in case we take them away
...
svn-id: r50405
2010-06-27 21:41:30 +00:00
Filippos Karapetis
8db94ef991
Cleanup
...
svn-id: r50404
2010-06-27 21:38:45 +00:00
Filippos Karapetis
1faebccce2
Cleanup, remove unused/obsolete code
...
svn-id: r50403
2010-06-27 21:29:35 +00:00
Filippos Karapetis
4a60ff4090
Made the script initialization/uninitialization methods part of the segment manager
...
svn-id: r50402
2010-06-27 21:18:19 +00:00
Martin Kiewitz
456265f8fa
SCI: resetting curPos as well when mixing sound resources
...
svn-id: r50401
2010-06-27 21:12:38 +00:00
Johannes Schickel
819dc92802
Escape a "?" character to prevent "??)" to be interpreted as trigraph and thus becoming "]".
...
svn-id: r50399
2010-06-27 21:04:47 +00:00
Filippos Karapetis
2843feeb9a
SCI: Made the code for initializing script classes, objects and locals part of the Script class
...
svn-id: r50398
2010-06-27 21:00:34 +00:00
Martin Kiewitz
5f9cc9e8f8
SCI: adding alias for vmvars ("vv") and vmvarlist ("vl")
...
svn-id: r50397
2010-06-27 20:43:32 +00:00
Filippos Karapetis
bb992b0b93
SCI: Moved all the script-related code inside script.cpp/.h, and all script opcode-related code inside vm.cpp/.h
...
svn-id: r50396
2010-06-27 20:38:43 +00:00
Martin Kiewitz
0436f2823d
SCI: added additional output to vmvars command
...
svn-id: r50395
2010-06-27 20:38:41 +00:00
Eugene Sandulenko
7078655de0
i18n: Sync all translation with sources
...
svn-id: r50394
2010-06-27 20:38:05 +00:00
Eugene Sandulenko
f5bc8be952
i18n: Update Russian translation
...
svn-id: r50393
2010-06-27 20:36:39 +00:00
Filippos Karapetis
e6a9a9da82
Silenced a false positive in MSVC about a potentially uninitialized variable
...
svn-id: r50392
2010-06-27 20:22:09 +00:00
Martin Kiewitz
1537d61299
SCI: added alias for bplist ("bl") and bpdel ("bc"), added capability of deleting all breakpoints by using "bc *"
...
svn-id: r50391
2010-06-27 20:11:15 +00:00
Filippos Karapetis
aa9b9dd08f
SCI: Separated the code for initializing script classes from the code for initializing script objects
...
svn-id: r50390
2010-06-27 20:09:51 +00:00
Martin Kiewitz
7644631daf
SCI: removing debug command "set_acc", use "vmvars a" instead
...
svn-id: r50389
2010-06-27 20:02:58 +00:00
Martin Kiewitz
4653153910
SCI: added new command "p" / "stepover" to execute one command, but skip send/calls processing. single-step is now "trace" (alias "s" and "t"), stepping till ret is "step_ret" (alias "pret"), removed unused kDebugSeek
...
svn-id: r50388
2010-06-27 19:58:32 +00:00
Martin Kiewitz
303dc06388
SCI: fixing regression from one of the merges
...
svn-id: r50387
2010-06-27 18:41:07 +00:00
Thierry Crozat
945297a599
Add italian translation from the patch tracker ( #3022046 ) and update credits.
...
svn-id: r50386
2010-06-27 18:19:37 +00:00
Martin Kiewitz
777794d11d
SCI: filter out set signal commands from midi streams, if they happen at ticker 0. fixes castle daventry getting removed immediately in kq5 french/mac
...
svn-id: r50385
2010-06-27 17:58:26 +00:00
Florian Kagerer
7e05376ebe
GUI: and another fix for the music device popup
...
svn-id: r50384
2010-06-27 17:37:35 +00:00
Torbjörn Andersson
5997307081
Fixed GCC warnings. (Same warning twice, actually.)
...
svn-id: r50383
2010-06-27 17:06:26 +00:00
Florian Kagerer
72f65f8204
GUI: fix music device popup (thanks to clone2727 for reporting)
...
svn-id: r50382
2010-06-27 16:58:06 +00:00
Thierry Crozat
006197e5bd
Update the french translation.
...
svn-id: r50381
2010-06-27 16:53:08 +00:00
Martin Kiewitz
a2cdc47530
SCI: now showing kernel call name when argument signature check fails
...
svn-id: r50380
2010-06-27 16:09:17 +00:00
Filippos Karapetis
d7f212647a
Turned the error when failing to locate an invalid object back to a warning (KQ5 French has an invalid object in script 202)
...
svn-id: r50379
2010-06-27 16:02:03 +00:00
Martin Kiewitz
01bfcf98cc
SCI: debug command vmvars - adding acc support
...
svn-id: r50378
2010-06-27 15:50:51 +00:00
Eugene Sandulenko
d5bff2f5d4
GUI: Copy over fonts from the vendor branch, so they will lay next to the GUI.
...
It will be used for future support of locale-dependent fonts.
svn-id: r50377
2010-06-27 13:25:06 +00:00
Lars Skovlund
6864d09d68
SCI: Fix for large views in GK2. At least it does not segfault now.
...
svn-id: r50376
2010-06-27 13:15:01 +00:00
Eugene Sandulenko
25ca058fa8
Add support for Chinese The DIG.
...
svn-id: r50375
2010-06-27 13:06:22 +00:00