aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.cpp
AgeCommit message (Collapse)Author
2010-06-09Merged script_init_engine() and game_init() and cleaned up SciEngine::run() ↵Filippos Karapetis
a bit svn-id: r49537
2010-06-07SCI: Relax signature of kCreateTextBitmap.Walter van Niftrik
svn-id: r49470
2010-05-30Limit access to the _bufSize, _scriptSize and _heapSize members of the ↵Filippos Karapetis
Script class svn-id: r49327
2010-05-28CleanupFilippos Karapetis
svn-id: r49290
2010-05-28Added a stub for kMergePoly, to avoid crashing in QFG1VGA after killing a ↵Filippos Karapetis
monster svn-id: r49288
2010-05-27Fix starting GK1.Matthew Hoops
svn-id: r49265
2010-05-18- Removed the wrapper kalloc, kmem and kfree functions. Now, the associated ↵Filippos Karapetis
Segment manager functions allocateHunkEntry, getHunkPointer and freeHunkEntry are used directly (which are more descriptive, anyway) - Replaced the GET_SEGMENT macro by a method of the segment manager - Removed the unused reference to the created hunk in allocateHunkEntry(), only the reg_t reference to it is returned now svn-id: r49078
2010-05-18- Moved kernel_lookup_text inside the Kernel classFilippos Karapetis
- Added a pointer to the segment manager from within the Kernel class, thus simplifying the calls to it svn-id: r49076
2010-05-18- Moved determine_reg_type() and kernel_matches_signature() inside the ↵Filippos Karapetis
Kernel class, where they belong - Moved the kernel signature defines inside kernel.h - Removed some unused references to EngineState svn-id: r49075
2010-05-18Add initial support for KQ6 Mac. Wrapper functions for read/writing to ↵Matthew Hoops
pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression. svn-id: r49070
2010-05-12ListIndexOf can have a null object reference, so adjust its signature. GK1 ↵Matthew Hoops
no longer crashes when right clicking in the inventory. svn-id: r49009
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