aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
AgeCommit message (Collapse)Author
2010-06-25SCI: adding capability for detecting export-calls into valgrind-sci, adding ↵Martin Kiewitz
workaround for export 1 of script 703 in sq1 (gets called from various objects) svn-id: r50292
2010-06-25SCI: fix typoFlorian Kagerer
svn-id: r50291
2010-06-25AUDIO: get rid of MDT_PREFER_MIDI since it should be sufficient to either ↵Florian Kagerer
select MDT_PREFER_MT32 or MDT_PREFER_GM svn-id: r50288
2010-06-25SCI: adding workaround for uninitialized read in sq1Martin Kiewitz
svn-id: r50287
2010-06-25Renamed some variablesFilippos Karapetis
svn-id: r50284
2010-06-25Removed the getHunkPointer error - it's valid SCI behavior (e.g. when ↵Filippos Karapetis
loading/quitting sometimes, since hunks are not saved). We check for valid hunk pointers anyway, so there's no reason for the warning/error svn-id: r50279
2010-06-25SCI: changing workaround results for opcodes from signal_reg to make_reg(0, 1)Martin Kiewitz
svn-id: r50278
2010-06-25When loading a game, stop all running VMs recursively, and also stop ↵Filippos Karapetis
kAnimate's current recursion. This fixes the invalid execution stack frame in SQ1, when loading from the death screen after dying from the acid drops in Kerona. This should also fix the invalid hunk pointers, thus the warning about invalid hunk pointers has been turned into an error, as it shouldn't occur anymore svn-id: r50277
2010-06-25Do not allow the VM to run on non-existent scripts (which shouldn't be ↵Filippos Karapetis
happening anymore) svn-id: r50276
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-25SCI: Introduce SciGameId enumMax Horn
svn-id: r50273
2010-06-25SCI: Restrict some 'error' exceptions to the places they occur; cleanupMax Horn
svn-id: r50271
2010-06-25SCI: when writing to a temp, check for segment 0xFFFF and remove it. This ↵Martin Kiewitz
fixes a false-positive uninitialized read error in room 44 sq1 svn-id: r50269
2010-06-25Removed the checking of parameters again (it's wrong, as it happens after, ↵Filippos Karapetis
instead of before) and restored the workaround for SQ1 in op_add again svn-id: r50268
2010-06-25Some more info on kText(), removed dead codeFilippos Karapetis
svn-id: r50267
2010-06-25SCI: changes to the op GT workaroundMartin Kiewitz
svn-id: r50266
2010-06-25Added the SCI2.1 kText kernel function (subop 0, kTextSize for now)Filippos Karapetis
svn-id: r50265
2010-06-25Extended validate_read_var to check for parameters too, and fixed the ↵Filippos Karapetis
uninitialized variable in SQ1 there svn-id: r50263
2010-06-25Added workarounds for two issues which appear when throwing the water at ↵Filippos Karapetis
Orat in SQ1, room 28 svn-id: r50262
2010-06-25Removed the game ID check for embedded priority in icon controls, and ↵Filippos Karapetis
replaced it with a check for priority existence svn-id: r50260
2010-06-24SCI: doing the exact opposite of r50236 code-wise now, as it was meant to beMartin Kiewitz
svn-id: r50237
2010-06-24SCI: ignore segment 0xFFFF in segmanager getchar, when offset > 1 - so we ↵Martin Kiewitz
dont write a warning, if the scripts use some uninitialized temp variable as terminator svn-id: r50236
2010-06-24SCI: better initialize temp variables with FFFF:0 instead. foreign lsl3 uses ↵Martin Kiewitz
kFileIO(readraw) and then kReadNumber directly. In that case we would produce many warnings because no terminating 0 is found svn-id: r50235
2010-06-24SCI: Make kStrAt clear segment when writing charactersWillem Jan Palenstijn
This is necessary since the uninitialized value detection from r50211, and is analogous to seg_manager.cpp's setChar. (Triggered in LSL3 age verification.) svn-id: r50234
2010-06-24SCI: reverting r50232, didnt make sense. thx @ wjp for noticingMartin Kiewitz
svn-id: r50233
2010-06-24SCI: correctly put NUL inside SegManager::strncpy() even when using n = ↵Martin Kiewitz
0xFFFFFFFFU svn-id: r50232
2010-06-24SCI: fixing the tortoisegit commit disaster :PMartin Kiewitz
svn-id: r50231
2010-06-24SCI: removing debug warning to show processes opcodes, accidentaly commitedMartin Kiewitz
svn-id: r50230
2010-06-24SCI: partly reverting r50208, iceman has script code (fred::canBeHere) that ↵Martin Kiewitz
asks for property 380. sierra also returned a zero when going out of bounds (see gregs engine object.cpp, ::getPropertyN - fixes iceman, lsl3 and probably more svn-id: r50229
2010-06-24Fixed the LSL3 binoculars scene again, by fixing the invalid varselector ↵Filippos Karapetis
reference svn-id: r50227
2010-06-24SCI: added uninitialized workaround for sq4cdMartin Kiewitz
svn-id: r50226
2010-06-24Cleanup uninitialized read workaround(s).Matthew Hoops
svn-id: r50225
2010-06-24SCI: added uninitialized read for room 720 in lsl1Martin Kiewitz
svn-id: r50222
2010-06-24SCI: arg5 is map for graph(updateBox), added commentMartin Kiewitz
svn-id: r50221
2010-06-24Added more information concerning the Dr. Brain uninitialized readFilippos Karapetis
svn-id: r50219
2010-06-24SCI: removing warning for known uninitialized readsMartin Kiewitz
svn-id: r50217
2010-06-24SCI: change fix for island to make it workMartin Kiewitz
svn-id: r50216
2010-06-24SCI: fixed workaround table from r50214 to have a valid terminator, also ↵Martin Kiewitz
added another fix for pharkas svn-id: r50215
2010-06-24SCI: created a workaround table for uninitialized reads, removing old ↵Martin Kiewitz
commented out workarounds for pharkas and laura bow 2 svn-id: r50214
2010-06-24SCI: added currently known object/methodnames in comments for uninitialized ↵Martin Kiewitz
reads svn-id: r50213
2010-06-24SCI: added objectname and method name printed out when uninitialized temps ↵Martin Kiewitz
are read svn-id: r50212
2010-06-24SCI: implement detection for uninitialized temp variable reads and implement ↵Martin Kiewitz
direct fixes for them, i couldnt figure out a valid replacement for island, pharkas and laurabow2 work that way. this should also get changed to a replacement table svn-id: r50211
2010-06-24Turned two hacks inside validate_property() into errors till we find out ↵Filippos Karapetis
where and why they occur (they shouldn't occur). Also turned an error inside send_selector() when argc > 1 into a warning - these are usually script bugs and aren't fatal svn-id: r50208
2010-06-24Initialize the stack with 'S' or 's' characters, like SSCI does (ultimately, ↵Filippos Karapetis
we should not change the stack again like we do in op_link - this is what Sierra is doing). Some cleanup svn-id: r50207
2010-06-24Fixed script 140 in the Island of Dr. Brain by adding a workaround for it ↵Filippos Karapetis
inside op_link svn-id: r50203
2010-06-24Changed an error in LocalVariables::dereference() back to a warning, as it ↵Filippos Karapetis
occurs in 2 places during the intro of LB2 (called from kMemory(peek)) svn-id: r50202
2010-06-23Fixed memory fragmentation warnings in Crazy Nick's gamesFilippos Karapetis
svn-id: r50188
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
2010-06-23Removed a hack with SCI1.1 static selectors, and set them properly. This ↵Filippos Karapetis
fixes scaling in the demo of QFG3 svn-id: r50182
2010-06-23SCI: adding some more global scaling code, adding vanishingY and vanishingX ↵Martin Kiewitz
as selectors svn-id: r50180