aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.cpp
AgeCommit message (Collapse)Author
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-02-23SCI: Turn kernel_sleep() into SciEvent::sleep()Max Horn
svn-id: r48119
2010-02-23SCI: Move SciGui::wait to EngineState::waitMax Horn
svn-id: r48118
2010-02-21Added comments on the SCI0-SCI1.1 kernel function table differences Filippos Karapetis
svn-id: r48100
2010-02-17SCI: Cleanup resource.hMax Horn
svn-id: r48084
2010-02-07SCI1 Mac games can call kGetFarText with a NULL destination, so we need to ↵Matthew Hoops
allocate the memory. King's Quest V Mac is now playable. svn-id: r47950
2010-02-05SCI: Add implementation for Intersections().Walter van Niftrik
svn-id: r47901
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-01-31SCI: Add stub for kIntersections()Walter van Niftrik
svn-id: r47784
2010-01-31SCI: Implement kMemorySegment().Walter van Niftrik
svn-id: r47776
2010-01-30SCI: Remove extra '\n's in debugC messagesWillem Jan Palenstijn
svn-id: r47707
2010-01-30Add support for saving/loading Arrays/Strings in SCI32. It's possible to ↵Matthew Hoops
save a game in GK1 now via the console, but not load (yet). svn-id: r47696
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-26Mention that the signature of kUnload has been set like this because of the ↵Filippos Karapetis
SQ1 bug svn-id: r47569
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-23kSetSynonyms is really parser related, but it's an empty function in games ↵Filippos Karapetis
without a parser svn-id: r47484
2010-01-15Updated kernel function check for kGetEvent in Mac versions and adjusted the ↵Filippos Karapetis
comments for kGetSaveDir svn-id: r47307
2010-01-13SCI: fix kernel signature for kDrawCel (fixes island of dr. brain), added ↵Martin Kiewitz
debugging output for kernel_matches_signature svn-id: r47288
2010-01-12Fix some memory leaks caused by never freeing the allocated memory, which is ↵Johannes Schickel
pointed at by KernelFuncWithSignature::signature. svn-id: r47275
2010-01-11Don't update the screen twice while waitingFilippos Karapetis
svn-id: r47254
2010-01-07SCI: changed kernel signature for kDrawCel, enabled upscaled hires savebox ↵Martin Kiewitz
code ("crashed" before because afterwards kDrawCel will get the handle from the savebox call) svn-id: r47121
2010-01-05More renamingFilippos Karapetis
svn-id: r47009
2010-01-03Implement kInPolygon for SCI32. GK1 now responds when you click on things.Matthew Hoops
svn-id: r46918
2009-12-31kLocalToGlobal has a 'Plane' variant in SCI32 like its kGlobalToLocal ↵Matthew Hoops
sibling. The restore menu is now slightly navigatable. svn-id: r46790
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-30Initial implementation of the SCI21 kList kernel function (which calls all ↵Filippos Karapetis
the other list-related functions), thanks to the help of waltervn svn-id: r46744
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 some of clone2727's changes to kArray and kString, and ↵Filippos Karapetis
implemented kListIndexOf svn-id: r46739
2009-12-27Renamed gameName -> gameId, to keep the same vocabulary everywhereFilippos Karapetis
svn-id: r46635
2009-12-27Turned some unimplemented debug related kernel functions into dummy functionsFilippos Karapetis
svn-id: r46613
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-26Kernel function 0x26 is empty in SCI1.1 games, and it has been set to ↵Filippos Karapetis
kPortrait in KQ6CD only svn-id: r46585
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-24SCI32: Added some more stubs for picture manipulation, screen update and ↵Filippos Karapetis
animation functions svn-id: r46529
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-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-12-04SCI: Make event constants more verboseMartin Kiewitz
svn-id: r46255
2009-12-04SCI: SciEvent created, kernel_sleep() createdMartin Kiewitz
svn-id: r46252
2009-10-30Some work on the kPortrait kernel function, used to show hires character ↵Filippos Karapetis
portraits in the Windows CD version of KQ6 svn-id: r45552
2009-10-28Rewrote kBaseSetter() to use new graphics functions and behave like the ↵Filippos Karapetis
original, and fixed a bug in the process (the previous code ignored z when calculating the height) svn-id: r45463
2009-10-28Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard ↵Filippos Karapetis
(defined in sci.h) svn-id: r45459
2009-10-21- Removed kShow() and the related code it uses - it's a debugging function, ↵Filippos Karapetis
and we have the same functionality in the debug console - Merged the view signal flags from kernel.h and gui_animate.h, and named them appropriately. Also, updated the notes next to them, cause some were incorrectly marked as not used in our engine - Added a note about a hack used in the old GUI in the view signal flags - Moved the control state flags inside gui_helpers.h svn-id: r45310
2009-10-20SCI/newgui: kPalette cleanup, preparing for sq5 paletteAnimate supportMartin Kiewitz
svn-id: r45273
2009-10-18Removed unused references to operations.hFilippos Karapetis
svn-id: r45217
2009-10-15SCI: included stub for kPalVary to make Pharkas work a little bit more ↵Martin Kiewitz
(currently crashes in kMessage) svn-id: r45102
2009-10-12SCI: now allowing calling celWide and celHigh with only 2 parameters (done ↵Martin Kiewitz
by eco quest 1 when entering menu) svn-id: r44986