Filippos Karapetis
ebb391790f
SCI32: Partially implemented kOnMe. Now the main menu in GK1 works
...
svn-id: r46614
2009-12-27 03:57:59 +00:00
Filippos Karapetis
8851663363
Turned some unimplemented debug related kernel functions into dummy functions
...
svn-id: r46613
2009-12-27 02:57:03 +00:00
Filippos Karapetis
a4990f6f33
Now using m_kiewitz's picture code to show pictures in SCI32. Also took some bits off a similar patch from clone2727. The Sierra logo screen and the menu screen in GK1 should now be shown fully!
...
svn-id: r46609
2009-12-27 01:49:39 +00:00
Filippos Karapetis
f6da0146b2
Throw a warning when we're trying to invoke a variable selector, instead of swallowing it silently. This should never happen, so we shouldn't hide it, when it does
...
svn-id: r46596
2009-12-26 17:10:43 +00:00
Filippos Karapetis
4e743e1a46
SCI2: Figured out the screen coordinates of views. Now, part of the interface can be seen in GK1. Also, silenced the OnMe warnings
...
svn-id: r46593
2009-12-26 16:16:02 +00:00
Filippos Karapetis
b2c170168e
SCI2: Implemented kListEachElementDo (a more advanced version of SciGuiAnimate:invoke()) and kListAt. Now, the Sierra logo music can be heard, and game logic is running on objects of the animated views list
...
svn-id: r46591
2009-12-26 15:47:57 +00:00
Filippos Karapetis
71f6fede60
Removed the file and line parameters from the selector handling functions
...
svn-id: r46588
2009-12-26 14:58:23 +00:00
Filippos Karapetis
4f02900890
Kernel function 0x26 is empty in SCI1.1 games, and it has been set to kPortrait in KQ6CD only
...
svn-id: r46585
2009-12-26 13:53:59 +00:00
Filippos Karapetis
0de0abb5d3
Case kSciAudioLanguage in kDoAudio always checks for audio capability in SCI1.1 games, regardless of parameters. Fixes a warning in SQ4CD
...
svn-id: r46584
2009-12-26 13:50:52 +00:00
Filippos Karapetis
21c6bbc588
Fixed graphics functions detection in an old version of SQ3 - my initial thought to rely on the presence of the shiftParser selector was wrong
...
svn-id: r46580
2009-12-26 13:35:17 +00:00
Filippos Karapetis
d39ac80f4a
Hopefully fixed the freezes/deadlocks in the new music code (e.g. in LSL5 and Castle of Dr. Brain)
...
svn-id: r46579
2009-12-26 13:20:07 +00:00
Filippos Karapetis
c6a8d0e973
- Made the music playlist private
...
- Removed some leaks
- Fixed the destruction of the music playlist
- Made mutexes more sane
- Removed some dead code
- Cleanup
svn-id: r46578
2009-12-26 11:54:57 +00:00
Filippos Karapetis
12b6d4ab03
Some more work on the new music code
...
svn-id: r46569
2009-12-26 00:50:09 +00:00
Filippos Karapetis
a88e4df7a0
SCI/new music code: Fixed a bug where music was stopped when saving. Some cleanup
...
svn-id: r46568
2009-12-26 00:22:21 +00:00
Martin Kiewitz
2f5f625b98
SCI/newmusic: added filter support for kq4early and adlib
...
svn-id: r46563
2009-12-25 18:59:15 +00:00
Filippos Karapetis
113c0941ae
- Introduced a new version in the sound version detection routine, as SCI0 early games had different sound than SCI0 late ones
...
- Changed sound-related debug output from printf's into debugC calls
svn-id: r46560
2009-12-25 18:15:16 +00:00
Filippos Karapetis
f5567d4605
Fixed variable capitalization
...
svn-id: r46552
2009-12-25 13:37:55 +00:00
Filippos Karapetis
a5bb030b6e
Properly initialize the audio stream part of each music slot when loading
...
svn-id: r46550
2009-12-25 13:26:09 +00:00
Filippos Karapetis
809e8c9123
SCI/new music code: Some initial code for saving/loading the sound state
...
svn-id: r46549
2009-12-25 13:18:48 +00:00
Johannes Schickel
f642687638
Fix gcc warning (and along with it make the code a little bit easier to read).
...
svn-id: r46542
2009-12-25 03:29:17 +00:00
Filippos Karapetis
98053616d1
Silenced some MSVC warnings
...
svn-id: r46536
2009-12-24 20:45:32 +00:00
Matthew Hoops
996da19fc9
Stub SCI32's kOnMe to give better debugging info (used when clicking in the GK1 menu).
...
svn-id: r46533
2009-12-24 18:37:35 +00:00
Filippos Karapetis
f73e9c43c4
Updated comments in kListEachElementDo() to show how it's called, with the help of waltervn
...
svn-id: r46530
2009-12-24 15:24:48 +00:00
Filippos Karapetis
9072b0c26e
SCI32: Added some more stubs for picture manipulation, screen update and animation functions
...
svn-id: r46529
2009-12-24 15:02:06 +00:00
Filippos Karapetis
c8a3d163d1
Added a hack in kAddScreenItem to display the view in question on screen. Some parts of the main menu can be seen now in GK1
...
svn-id: r46528
2009-12-24 14:18:16 +00:00
Filippos Karapetis
69fa167902
SCI32: The view related functions pass a view object as parameter, and the engine should deduce the parameters it needs from that object. Added stub view functions based on that fact. Also, added a sanity check in kCelHigh and kCelWide
...
svn-id: r46527
2009-12-24 13:50:50 +00:00
Matthew Hoops
65dcc0b2a3
SCI32:
...
- Fix dup for kArray/kString
- Implement kFileIO::rename (SCI1.1)
- Implement part of the SCI32 additions to kFileIO
- Implement the GetSaveDir part of kSave (SCI2.1)
- Torin (SCI2.1!) now shows signs of life -- it will create the torin.prf file with correct data!
svn-id: r46521
2009-12-24 02:43:07 +00:00
Matthew Hoops
4be2788ffd
Some SCI32 (minor) String bug fixes and cleanup.
...
svn-id: r46492
2009-12-23 05:10:16 +00:00
Matthew Hoops
35e91fbddf
Add a TODO for the SCI 2.1 message version (5).
...
svn-id: r46465
2009-12-21 15:22:42 +00:00
Matthew Hoops
482812a1ff
Update/add some comments/TODOs.
...
svn-id: r46463
2009-12-21 14:46:07 +00:00
Matthew Hoops
ef79d7f017
SCI32:
...
- Fully implement kArray and kIsHiRes and mostly implement kString (printf and atoi subfunctions still missing).
- Add a dummy SciGui class for SCI32 to bypass the views. Gabriel Knight 1 will now play the Sierra logo music and the main menu music.
- Some other minor SCI32 changes.
svn-id: r46462
2009-12-21 14:32:54 +00:00
Filippos Karapetis
2a3cbcbc57
Fixed text controls when subtitles are enabled in multilingual SCI01 games
...
svn-id: r46461
2009-12-21 14:06:47 +00:00
Filippos Karapetis
e86a16a641
Fixed menus in multilingual SCI01 games
...
svn-id: r46460
2009-12-21 14:05:36 +00:00
Filippos Karapetis
980b8bb899
Moved all of the sound iterator code in its own directory, and added a slight hack to the SoundCommandParser constructor
...
svn-id: r46430
2009-12-20 13:38:13 +00:00
Filippos Karapetis
c388e89181
Wrapped some more sound code around appropriate defines
...
svn-id: r46429
2009-12-20 13:28:23 +00:00
Filippos Karapetis
4f918cd68c
Removed dead code
...
svn-id: r46426
2009-12-20 12:43:36 +00:00
Filippos Karapetis
0c1b646c7f
- Started wrapping the current sound code around appropriate defines
...
- Introduced a new resource type, SoundResource, used in the new music code
svn-id: r46421
2009-12-19 16:19:53 +00:00
Matthew Hoops
26a5c1c3a5
Fix segfault when quitting. static const Common::String's shouldn't be used.
...
svn-id: r46416
2009-12-19 02:12:17 +00:00
Max Horn
5df86e4ccc
SCI: Paranoia tweak for EngineState::autoDetectFeature
...
svn-id: r46306
2009-12-09 12:32:47 +00:00
Martin Kiewitz
7e1bf3fb4b
SCI: Save/LoadGame Common::Rect saving now portable
...
svn-id: r46304
2009-12-09 07:28:04 +00:00
Martin Kiewitz
84b910f755
SCI: new USE_OLDGFX for switching to oldgui, fixes loading of savedgames under oldgui, oldgui doesn't like calling of setPortPic during loading
...
svn-id: r46294
2009-12-08 21:22:22 +00:00
Martin Kiewitz
601fd79733
SCI: SciGui::getPortPic now uses byref
...
svn-id: r46293
2009-12-08 21:04:40 +00:00
Martin Kiewitz
a2d7505e81
SCI: Saving picPort now (fixes loading saved games in castle of dr. brain)
...
svn-id: r46292
2009-12-08 20:54:18 +00:00
Max Horn
923cbff625
SCI: Cleanup DirSeeker a little bit
...
svn-id: r46290
2009-12-08 20:44:01 +00:00
Martin Kiewitz
3db1912759
SCI: Renamed "buckybits" to "modifiers" in SciEvent
...
svn-id: r46256
2009-12-04 18:02:48 +00:00
Martin Kiewitz
d982d10505
SCI: Make event constants more verbose
...
svn-id: r46255
2009-12-04 17:58:26 +00:00
Martin Kiewitz
4fb779dbaf
SCI: Recreate SciEvent on loading saves
...
svn-id: r46253
2009-12-04 17:42:32 +00:00
Martin Kiewitz
a5f1808c83
SCI: SciEvent created, kernel_sleep() created
...
svn-id: r46252
2009-12-04 17:38:24 +00:00
Martin Kiewitz
055c8b087b
SCI: Alt translation. Currently handles Ctrl-X as Ctrl-Alt-X so that bypassing questions in lsl1vga is possible. ScummVM currently doesn't give us event for Ctrl-Alt-X
...
svn-id: r46251
2009-12-04 14:32:32 +00:00
Martin Kiewitz
dde8743923
SCI: Convert characters to scancode, when Ctrl is pressed (fixes key-shortcuts not working in lsl5, lsl1, qfg1vga and others)
...
svn-id: r46249
2009-12-04 13:49:43 +00:00