aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel32.cpp
AgeCommit message (Collapse)Author
2010-02-08Search through arrays for outgoing references to fix possible garbage ↵Matthew Hoops
collector problems; minor cleanup. svn-id: r47989
2010-02-05SCI: Add a 'SELECTOR' macroMax Horn
svn-id: r47918
2010-02-05SCI: frameout sci32 stuff now gets called directly w/o SciGui/32Martin Kiewitz
svn-id: r47907
2010-02-03Placed all the game feature detection code in a separate classFilippos Karapetis
svn-id: r47850
2010-02-03Initial implementation of text drawing for SCI2 (it's a hack for now, done ↵Filippos Karapetis
the "SCI0-SCI11" way, and text splitting is wrong...) svn-id: r47838
2010-02-02Add support in kString(Cpy) for copying to system strings. Also, stubbing ↵Matthew Hoops
kFileIO(19) to allow Torin to see the main menu. Some minor cleanup. svn-id: r47820
2010-02-02Try to make drmccoy happy again (is that even possible? :P )Filippos Karapetis
svn-id: r47818
2010-02-02Added a stub for kCreateTextBitmap, which shows the text that should be ↵Filippos Karapetis
drawn on screen svn-id: r47816
2010-02-01Added an initial implementation of kGetHighPlanePriFilippos Karapetis
svn-id: r47799
2010-02-01Fix bug in kString(Printf)Lars Skovlund
svn-id: r47798
2010-01-30Implement kString(Printf) and resizing of SCI32 strings in kFormat().Matthew Hoops
svn-id: r47697
2010-01-30Added support for String types to kFormat (seems to work but needs testing...)Filippos Karapetis
svn-id: r47694
2010-01-30Ignore kString(printBuf) calls with more parameters than 3 - a list is ↵Filippos Karapetis
probably used svn-id: r47693
2010-01-30Implemented kString case 12 - it was really kFormat in disguise :)Filippos Karapetis
svn-id: r47691
2010-01-29SCI: added new SciGui32 class, Gfx class needs some work though and ↵Martin Kiewitz
hopefully i didnt overlook some kernel function that is also used by sci32. now using plane left/top svn-id: r47679
2010-01-29SCI: Move selector stuff to new header; reorder k_argc & k_argp param of ↵Max Horn
invoke_selector svn-id: r47665
2010-01-28SCI2.1: Added a dummy function for kRobot (with some info on its ↵Filippos Karapetis
parameters), assigned IsOnMe to OnMe (needs verification, but seems to be correct) and changed kSave(8) to return nonzero. The menu of the Phantasmagoria demo is now shown, together with its creepy music :) svn-id: r47648
2010-01-28Detect whether to use the modified SCI2 or SCI2.1 kernel table based on the ↵Matthew Hoops
kDoSound call used in Sound::play(), which fixes at least my version of KQ7 - probably others. The kernel table initialization now occurs after the script signatures are adjusted as we need it adjusted before checking through Sound::play for the kDoSound call. svn-id: r47645
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-10Silenced warnings ("this" isn't defined on object instantiation, and ↵Filippos Karapetis
commented out some unused variables) svn-id: r47237
2010-01-06SCI: making most of the variables in screen class private (some of it was ↵Martin Kiewitz
needed for old gui) svn-id: r47075
2010-01-05Fix walking in SCI32. Gabriel now will walk and DrMcCoy can now hear his ↵Matthew Hoops
precious 'Gabriel is a lout' line :P svn-id: r47011
2010-01-05Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purposeFilippos Karapetis
svn-id: r47007
2010-01-04SCI: now filtering screenItems against planesMartin Kiewitz
svn-id: r46996
2010-01-04SCI: fix crash due accessing invalid object (implemented deleteScreenitem)Martin Kiewitz
svn-id: r46993
2010-01-04SCI: surprise for this DrMcCoy guyMartin Kiewitz
svn-id: r46992
2010-01-03Implement kInPolygon for SCI32. GK1 now responds when you click on things.Matthew Hoops
svn-id: r46918
2009-12-30SCI32: Added sanity checks to kAddScreenItem and kUpdateScreenItem, so that ↵Filippos Karapetis
they don't try and draw cels outside the screen svn-id: r46767
2009-12-30SCI32:Matthew Hoops
- Set signature for Array/String - Add the kernel table differences for the GK2 demo - Implement kMessage changes in SCI32 - Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid) - Add dereferencing for Arrays svn-id: r46756
2009-12-30Fixed warningsFilippos Karapetis
svn-id: r46747
2009-12-30SCI32: Moved all the list related kernel functions inside klists.cpp, and ↵Filippos Karapetis
implemented kListAllTrue with the help of waltervn svn-id: r46742
2009-12-30Implemented ListFirstTrue(), thanks to the help of waltervn. Now, buttons ↵Filippos Karapetis
can be highlighted and clicked when the control panel is shown in GK1, and the options dialog pops up when the options button is selected svn-id: r46741
2009-12-30SCI32: added handling of variable selectors in kListEachElementDo() and ↵Filippos Karapetis
silenced some annoying warnings svn-id: r46740
2009-12-30SCI32: added some of clone2727's changes to kArray and kString, and ↵Filippos Karapetis
implemented kListIndexOf svn-id: r46739
2009-12-27SCI32: Partially implemented kOnMe. Now the main menu in GK1 worksFilippos Karapetis
svn-id: r46614
2009-12-27Now using m_kiewitz's picture code to show pictures in SCI32. Also took some ↵Filippos Karapetis
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-26SCI2: Figured out the screen coordinates of views. Now, part of the ↵Filippos Karapetis
interface can be seen in GK1. Also, silenced the OnMe warnings svn-id: r46593
2009-12-26SCI2: Implemented kListEachElementDo (a more advanced version of ↵Filippos Karapetis
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-24Silenced some MSVC warningsFilippos Karapetis
svn-id: r46536
2009-12-24Stub SCI32's kOnMe to give better debugging info (used when clicking in the ↵Matthew Hoops
GK1 menu). svn-id: r46533
2009-12-24Updated comments in kListEachElementDo() to show how it's called, with the ↵Filippos Karapetis
help of waltervn svn-id: r46530
2009-12-24SCI32: Added some more stubs for picture manipulation, screen update and ↵Filippos Karapetis
animation functions svn-id: r46529
2009-12-24Added a hack in kAddScreenItem to display the view in question on screen. ↵Filippos Karapetis
Some parts of the main menu can be seen now in GK1 svn-id: r46528
2009-12-24SCI32: The view related functions pass a view object as parameter, and the ↵Filippos Karapetis
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-24SCI32:Matthew Hoops
- 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-23Some SCI32 (minor) String bug fixes and cleanup.Matthew Hoops
svn-id: r46492
2009-12-21Update/add some comments/TODOs.Matthew Hoops
svn-id: r46463
2009-12-21SCI32:Matthew Hoops
- 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-08-27Add the minor differences of SCI3 to the SCI2.1 kernel table.Matthew Hoops
svn-id: r43763
2009-08-26- Fix the opcode formats for some opcodes in SCI32 (some arguments are now ↵Matthew Hoops
words instead of bytes). - Fix the SCI2.1 kernel table. - Add DoSound detection for SCI2. svn-id: r43762