aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.h
AgeCommit message (Collapse)Author
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-29SCI: Move selector stuff to new header; reorder k_argc & k_argp param of ↵Max Horn
invoke_selector svn-id: r47665
2010-01-28SCI: CleanupWalter van Niftrik
svn-id: r47649
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-27Oops.... actually close the defgroup :)Filippos Karapetis
svn-id: r47599
2010-01-27Fixed comment about vocabulary, so that it doesn't refer to the line below itFilippos Karapetis
svn-id: r47598
2010-01-26Added information about all the vocabularies used in SCIFilippos Karapetis
svn-id: r47573
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-23Separated the parser codeFilippos Karapetis
svn-id: r47480
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-03Fixed compilation with DISABLE_VALIDATIONS, and fixed a bug in kPrevNodeFilippos Karapetis
svn-id: r46949
2010-01-03Implement kInPolygon for SCI32. GK1 now responds when you click on things.Matthew Hoops
svn-id: r46918
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-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-26Removed the file and line parameters from the selector handling functionsFilippos Karapetis
svn-id: r46588
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-20Removed dead codeFilippos Karapetis
svn-id: r46426
2009-12-04SCI: SciEvent created, kernel_sleep() createdMartin Kiewitz
svn-id: r46252
2009-11-04priority_first and priority_last are not used by the new drawing code, thus ↵Filippos Karapetis
the new code didn't handle priority changes by kGraph() svn-id: r45658
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-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-18SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicitMax Horn
svn-id: r45234
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-13SCI: cleanupMax Horn
svn-id: r45040
2009-10-10SCI: kMessage() rewriteWalter van Niftrik
svn-id: r44860
2009-10-08Started rewriting the check for the graphics functions type (still not ↵Filippos Karapetis
finished) svn-id: r44787
2009-10-07SCI: Turn lookup_node & lookup_list into SegManager::lookupNode & ↵Max Horn
SegManager::lookupList svn-id: r44769
2009-10-06SCI: Minor cleanupWillem Jan Palenstijn
svn-id: r44706
2009-10-03SCI: Merge new GUI code written by m_kiewitz.Willem Jan Palenstijn
This is a major rewrite of the graphics code. A slightly adapted version of the old code is still available and currently the default. The new code is selectable in sci.cpp, but is not yet finished. svn-id: r44565
2009-09-29- Changed the unimplemented debug SCI kernel functions (InspectObj, ↵Filippos Karapetis
ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging - Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack - Removed kUnknown() and kStub() - Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now svn-id: r44461
2009-09-27SCI: Major string handling update.Willem Jan Palenstijn
All string access to segments should now work with both raw and non-raw (reg_t) segments, using the new utility functions in segMan. There will likely be regressions. svn-id: r44388
2009-09-23- Moved the SCI version in a global variableFilippos Karapetis
- Changed all the SCI version checks to use getSciVersion() - Also made getSciVersionDesc a global function (removes some ugly accessing of the SCI engine) The fallback detector should work correctly now svn-id: r44269
2009-09-21SCI: Workaround for crash in debugger's backtraceMax Horn
svn-id: r44239
2009-09-17SCI: Add EngineState::_kernel member for convenienceMax Horn
svn-id: r44173