aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.h
AgeCommit message (Collapse)Author
2011-01-08SCI2.1: Some functionality for Phantasmagoria 1 and MUMG DeluxeFilippos Karapetis
- Added a stub for kSetLanguage, used in MUMG Deluxe - this needs support at the resource manager level - Made kGetSierraProfileInt a stub function (it's used in the Windows version of Phantasmagoria 1 to override the video speed setting obtained from kGetConfig) svn-id: r55161
2011-01-08SCI: Fixed typoFilippos Karapetis
svn-id: r55160
2011-01-08SCI2.1: Added/documented some functionality used by Shivers 1Filippos Karapetis
- Added kFileIO subop 17 (create save slot) - Added information about a (probably debug) kernel function used in a puzzle, kCelInfo - Added some information on two kSave subops - Added 2 workarounds for uninitialized variables svn-id: r55158
2011-01-07SCI2.1: Kernel function changes (after looking through all of the SCI2.1 games)Filippos Karapetis
- Replaced the stub kWinDLL (unused), as well as the not fully implemented kPrintDebug functions with empty function calls - Marked several unused or debug kernel functions as stub - Added some games where the rest of the unimplemented SCI2.1 kernel functions are used svn-id: r55138
2010-11-24SCI: some changes to the way reverb is handledFilippos Karapetis
- "Invalid" SCI reverb values (127) are properly handled now - SCI kDoSound(reverb) sets the global reverb (renamed it accordingly) - kDoSound(reverb) can also return the current reverb if no parameter is sent svn-id: r54457
2010-11-19SCI: Implement the GetConfig call for LSL7Lars Skovlund
svn-id: r54369
2010-10-20SCI: Added a new debug command, "find_callk"Filippos Karapetis
This command can be used to find the object methods (including their corresponding objects and owner scripts) that call a specific kernel call. This shall aid us track all the spots where a particular kernel function is called from, therefore it'll be a bit easier to find examples where unimplemented kernel functions are called svn-id: r53646
2010-09-17SCI2: some very early work on kSetShowStyleFilippos Karapetis
svn-id: r52764
2010-09-15SCI: Some very early work on kRemapColors (just comments/observations for now)Filippos Karapetis
svn-id: r52733
2010-09-09SCI: Implemented the kPrintDebug SCI2.1 kernel function, used in Shivers (demo)Filippos Karapetis
svn-id: r52665
2010-09-09SCI: kIsOnMe is kOnMe, merge both into kIsOnMeMartin Kiewitz
and map kOnMe for SCI2 to kIsOnMe, remove commented out hacks. fix signatures for those 2 functions, added TODO - someone should fix the SCI32 signatures svn-id: r52664
2010-09-09SCI: Kernel table changesFilippos Karapetis
- Added the kernel names for all unimplemented kernel debug functions, and mapped them all to kDummy, so that the kernel tables are correct and all kernel functions are mapped (useful for debugging) - Added a stub for kWinHelp (normally opens an external Windows help file), with an appropriate dialog - Added a stub for kWinDLL, which currently errors out on purpose (this needs to be investigated, as it loads and uses external Windows DLLs) - Readded kListIndexOf in kList (the signature was wrong when the previous commit was made) svn-id: r52660
2010-09-09SCI: SCI2/2.1 kernel table changesFilippos Karapetis
- Mark several SCI2/2.1 kernel functions used for debugging as dummy - Added an empty function for kSetWindowsOption, used for settings specific to Windows versions (e.g. showing/hiding the title bar) - Added a stub for kGetWindowsOption (currently returning 0 to a Windows related option for Phantasmagoria) svn-id: r52652
2010-08-22SCI: Reimplemented the kShow kernel command, used by the inbuilt SCI ↵Filippos Karapetis
debugger. There is no real need to implement kernel debug commands, but since this one maps almost directly to our own "show" debug command, it has been reimplemented (was removed in rev #45310). Normally, there is no real need to implement kernel functions for debug functionality, since there are advanced tools for this purpose nowadays (plus, ScummVM's debugger). Fixes bug #3050616 - "QFG1 EGA: priority/control/view functions crash, debug mode" svn-id: r52281
2010-08-03SCI: adding bpk debug commandMartin Kiewitz
currently removing or listing such breakpoints is not yet supported svn-id: r51710
2010-08-02SCI: Silenced some sound related warnings. Added an empty function for ↵Filippos Karapetis
kDoSound(Restore), called when restoring games svn-id: r51661
2010-07-29SCI: some subfunction support for logkernelMartin Kiewitz
svn-id: r51475
2010-07-27SCI: Better fix for bug #3035058 - ECOQUEST demo: Missing subtitlesMatthew Hoops
The demo really uses kGetMessage and not kMessage. We now detect which version of the message function is used. Thanks to Walter for pointing this out. svn-id: r51384
2010-07-25SCI: adding kAddPicAt dummyMartin Kiewitz
svn-id: r51283
2010-07-25SCI: adding separate kCantBeHere32 (stub)Martin Kiewitz
svn-id: r51273
2010-07-23SCI: adding new debug command logkernelMartin Kiewitz
svn-id: r51220
2010-07-21SCI: More rest of the workaround defs to workarounds.hMax Horn
svn-id: r51090
2010-07-21SCI: Moved all the static kernel-related tables in a separate file. Also, ↵Filippos Karapetis
moved kStub, kStubNull and kDummy inside kmisc.cpp, together with the other misc kernel calls svn-id: r51089
2010-07-20SCI: clean up workaround tables/codeMartin Kiewitz
svn-id: r51068
2010-07-20SCI: adding uninit workarounds for cnick gamesMartin Kiewitz
longbow and king's quest KQ has the same issues as hoyle 3 svn-id: r51063
2010-07-20SCI: renaming kDoSound(resume) to resumeAfterRestoreMartin Kiewitz
kDoSound(resumeAfterRestore) is called right after restoring a saved game for sound-sci0 games, we already resume playing music inside restore, so we don't need to implement this at all svn-id: r51058
2010-07-18SCI: adding room numbers to all workaroundsMartin Kiewitz
svn-id: r50990
2010-07-14SCI: added signatures for kFileIO, some changes to actual kFileIO code, ↵Martin Kiewitz
removed some CHECKMEs/TODOs svn-id: r50896
2010-07-14TyposFilippos Karapetis
svn-id: r50863
2010-07-14SCI:Filippos Karapetis
- Split SCI2 from SCI2.1 signature checks - Added signature checking for the subops of the SCI2.1 kernel call kList - Added support for calls to kAddToFront and kAddToEnd with 3 parameters (unimplemented code uncovered by the signature checks) - Added a FIXME for a potential incorrect subop (uncovered by the signature checks), which might be related to the crashes in the demo of Torin's Passage svn-id: r50861
2010-07-12SCI: Remove dead codeMax Horn
svn-id: r50817
2010-07-10SCI: added signatures for kGraph, removed isDummy boolean from KernelFunctionMartin Kiewitz
svn-id: r50786
2010-07-10SCI: adding kPalette signatures, fixing 3 kPalVary calls, fixing ↵Martin Kiewitz
kAssertPalette (we used the wrong parameter number before, maybe the issues were caused by this) svn-id: r50780
2010-07-10SCI: added kPalVary signatures & mapping, removed debug-warningsMartin Kiewitz
svn-id: r50777
2010-07-09SCI: removing origName from KernelFunction struct, adding debugCalls boolean ↵Martin Kiewitz
for later use svn-id: r50769
2010-07-09SCI: implemented subsignatures for kDoSoundMartin Kiewitz
svn-id: r50755
2010-07-08SCI: part of subfunction signature&mapping implemented, little cleanupMartin Kiewitz
svn-id: r50750
2010-07-08SCI: sorted kernel map alphabeticallyMartin Kiewitz
svn-id: r50746
2010-07-07SCI: adding support to kernel signatures that invalid references may also ↵Martin Kiewitz
get allowed - doing exactly this for kGraph(restoreBox) - fixes castle of dr. brain when quitting the game - maybe a game specific workaround would be better?!?! svn-id: r50737
2010-07-06SCI: removing invalid reference error from signature checking, instead ↵Martin Kiewitz
adding new type "invalid", so that full call parameter debug information is available svn-id: r50725
2010-07-05SCI: fix compilation issues from r50678Martin Kiewitz
svn-id: r50679
2010-07-05SCI: implemented new kernel call signature formatMartin Kiewitz
svn-id: r50678
2010-07-03SCI: adding support to identify uninitialized values, when doing debug ↵Martin Kiewitz
output for kernel signatures svn-id: r50626
2010-07-01Support the CD kernel call (stub) and add the TRUE_REG constant.Lars Skovlund
Would be nice to use this constant in pre-existing code. svn-id: r50577
2010-06-30SCI: Removed the FreeSCI music codeFilippos Karapetis
svn-id: r50532
2010-06-30SCI: implementing workarounds for kernel calls, removing original code ↵Martin Kiewitz
workaround for kDisposeScript / qfg1 room 64 and adding it to workaround table svn-id: r50520
2010-06-29SCI: print out actual and supposed parameter types when having a kernel call ↵Martin Kiewitz
signature mismatch svn-id: r50487
2010-06-25Removed all of the non-validating code - there's no real point in removing ↵Filippos Karapetis
script validations svn-id: r50275
2010-06-25Added the SCI2.1 kText kernel function (subop 0, kTextSize for now)Filippos Karapetis
svn-id: r50265
2010-06-23Moved the SelectorCache struct inside selector.h, where it belongs, and ↵Filippos Karapetis
fixed some header dependencies in the process svn-id: r50183