aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
AgeCommit message (Collapse)Author
2009-07-10Applied patch #2819665 - "SCI: cell palette fix for QfG3/SQ5/etc."Filippos Karapetis
svn-id: r42345
2009-07-09Oops specify the correct revsision number in the fixme.Johannes Schickel
svn-id: r42306
2009-07-09Add fixme about SCI32 specific code.Johannes Schickel
svn-id: r42305
2009-07-09By comparing the commit log of r42300, it seems that "off" was renamed to ↵Johannes Schickel
"lastDirectoryOffset". I changed the SCI32 specific code to use that now. I can't assure this is anyhow correct, so anyone with knowledge of this code please check it. svn-id: r42303
2009-07-09Fix wrong format arugment.Johannes Schickel
svn-id: r42301
2009-07-09Applied patch #2818845 - "SCI: resource.map detection for SCI1/1.1 fixed", ↵Filippos Karapetis
with some slight formatting changes svn-id: r42300
2009-07-09restAdjust should be a signed integer. Fixes crashes with SCI1 games that ↵Filippos Karapetis
take absolute lofs parameters (a regression of commit #42260) svn-id: r42297
2009-07-08- Moved printObject inside the Console classFilippos Karapetis
- Enabled the parts where disassemble() is called svn-id: r42263
2009-07-08Only the kernel needs to be initialized before anything else, when ↵Filippos Karapetis
saving/loading svn-id: r42262
2009-07-08Fixed saving/loading again (broken with the latest changes for game feature ↵Filippos Karapetis
auto-detection) svn-id: r42261
2009-07-08Some cleanup for the script debugger code:Filippos Karapetis
- Renamed struct DebugState to ScriptState and r_amp_rest to restAdjust inside EngineState. Changed restAdjust to be a uint16 (actually it is a uint16, but it was being casted back and forth from an unsigned integer, so this clears up its type and size) - Moved the script state variables from inside the run_vm() into the ScriptState struct, so that they can be accessed by the console commands and the script debugger all the time, and removed the weird isValid code svn-id: r42260
2009-07-07Silenced the very chatty song iterator console messages by converting them ↵Filippos Karapetis
to appropriate debug messages svn-id: r42240
2009-07-07Improved the LSL1VGA workaround after talking with waltervnFilippos Karapetis
svn-id: r42239
2009-07-07Added a workaround for incorrect font references in LSL1VGA (which was the ↵Filippos Karapetis
original purpose of the code removed in rev. 42219) svn-id: r42238
2009-07-07Removed the weird checks for a maximum resource number (the ↵Filippos Karapetis
sci_max_resource_nr array), as it doesn't serve any real purpose and leads to strange errors: if a resource is found which is bigger than the maximum number, it will be remapped to an incorrect number from this check. This makes KQ5CD work properly again (resources would be remapped to incorrect resource numbers from this code as a result of not updating this array with the latest SCI version merges). svn-id: r42219
2009-07-07Removed the superfluous sci_version_types array (it's essentially the same ↵Filippos Karapetis
as the versionNames array) svn-id: r42216
2009-07-07Cleanup: added an enum for the auto-detected features, removed the selectors ↵Filippos Karapetis
which are only used for auto-detection from the convenience selector map and placed feature auto-detection in a separate function. Also, now the automatically detected graphics resources are shown in the console. svn-id: r42212
2009-07-07Added auto-detection for games with older headers for script blocks, and ↵Filippos Karapetis
removed game flag GF_SCI0_OLD svn-id: r42211
2009-07-07Added a SCI1.1 case in the lofss opcode, like in the lofsa opcode ↵Filippos Karapetis
(essentially, lofss and lofsa both load an offset, with lofsa loading it in the accumulator and lofss in the stack). lofss is rarely used in SCI1.1 games, which explains why no lofss-related crashes have been observed in SCI1.1 svn-id: r42209
2009-07-07- Added auto-detection for EGA graphics. As a result of this, GF_SCI1_EGA ↵Filippos Karapetis
has been removed and versions SCI_VERSION_01_EGA and SCI_VERSION_01_VGA have been merged into SCI_VERSION_01 - Simplified the checks for EGA and VGA graphics - Fixed a bug in script_adjust_opcode_formats() - Simplified the code in GfxResManager::getView() a bit svn-id: r42206
2009-07-07Prevent a crash when the engine errors out before the game state is initializedFilippos Karapetis
svn-id: r42201
2009-07-07Removed unused defineFilippos Karapetis
svn-id: r42200
2009-07-06Renamed SCI_VERSION_01 -> SCI_VERSION_01_EGAFilippos Karapetis
svn-id: r42181
2009-07-06Swapped the music and audio resource check for SCI1.1 games. Digital sound ↵Filippos Karapetis
effects are now preferred over the synthesized ones svn-id: r42179
2009-07-06KQ6CD should be working correctly againFilippos Karapetis
svn-id: r42178
2009-07-06Proper handling of sound effects marked as music resourcesFilippos Karapetis
svn-id: r42174
2009-07-06When a song isn't found, send a "stop handle" event so that the engine won't ↵Filippos Karapetis
wait forever (e.g. in SQ4CD, perhaps others) svn-id: r42172
2009-07-06Assigned several unimplemented/unused kernel functions as stubs, so that we ↵Filippos Karapetis
know when they're used and how they're called svn-id: r42170
2009-07-06Added seChanged the warning displayed when a selector can't be mapped to a ↵Filippos Karapetis
debugC - it's perfectly normal not to find certain selectors in certain SCI versions. Also, fixed the SCI version enums svn-id: r42169
2009-07-06Fixed compilationFilippos Karapetis
svn-id: r42168
2009-07-06Replaced sciprintf() calls with printf, DebugPrintf, warning and error callsFilippos Karapetis
svn-id: r42167
2009-07-05Merged the two SCI1 versions in one more fileFilippos Karapetis
svn-id: r42136
2009-07-05- Fixed feature auto-detection for Conquests of CamelotFilippos Karapetis
- Auto-detected features are now printed in the console (to ease debugging) svn-id: r42132
2009-07-05SCI1 games with absolute parameters to lofs instructions are automatically ↵Filippos Karapetis
detected now. Removed the GF_SCI1_LOFSABSOLUTE game flag svn-id: r42118
2009-07-05Removed validity check for atoi, which prevented console commands from ↵Filippos Karapetis
interacting with resources with id 0 svn-id: r42117
2009-07-05When creating a CleanupSongIterator, transfer death listeners to itWillem Jan Palenstijn
svn-id: r42113
2009-07-04When morphing a TeeSongIterator, transfer death listeners to remaining childWillem Jan Palenstijn
svn-id: r42112
2009-07-04Cursors without a palette are now initialized correctly (from patch ↵Filippos Karapetis
#2816652). Fixes the cursor transparent color in QFG3 svn-id: r42099
2009-07-04Merged SCI1 versions in one more fileFilippos Karapetis
svn-id: r42098
2009-07-04- Merged the "early" and "late" SCI1 versions - these are functionally ↵Filippos Karapetis
equivalent, and the code that does the version check is unreliable (e.g. it sets SQ1 VGA to SCI1 "late" and EcoQuest 1 to SCI1 "early") - Cleanup of the vocabulary setting functions - Cleanup of the cursor manipulation code svn-id: r42097
2009-07-04- Kernel function names are no longer loaded from vocab.999, but are ↵Filippos Karapetis
constructed from the hardcoded function table, depending on the SCI version used - SCI0 games using older graphics functions are now detected by the presence of the "curAngle" selector - SCI0 games using a SCI1 table (like KQ1 demo version and full version) are detected by the presence of the "sightAngle" selector (as no SCI0 game seems to have it) svn-id: r42095
2009-07-04- Changed some comments to DOxygen styleFilippos Karapetis
svn-id: r42094
2009-07-04Added a new console command, "selector", which attempts to find a selector ↵Filippos Karapetis
by name svn-id: r42093
2009-07-04Removed silly FIXME (mixup between debug and engine debug levels)Filippos Karapetis
svn-id: r42088
2009-07-04Newer DoSound() semantics are now detected automatically, by the existence ↵Filippos Karapetis
of the "setVol" selector. Removed game flag GF_SCI1_NEWDOSOUND svn-id: r42087
2009-07-03SCI0 games using older graphics functions are automatically detected now, ↵Filippos Karapetis
from the presence of the "TimesSin" and "SinMult" kernel functions. Removed the GF_SCI0_OLDGFXFUNCS game flag svn-id: r42081
2009-07-03Replaced script_error and CORE_ERROR with error()Filippos Karapetis
svn-id: r42079
2009-07-03- Pushed debugstate into debug.hFilippos Karapetis
- When an error occurs, manipulate the execution stack before error() opens the console inside getDebugger(), like FreeSCI did. Added another method for obtaining the SCI console for use by the engine itself. svn-id: r42062
2009-07-03Replaced all calls for manipulating the mouse cursor to be made to the ↵Filippos Karapetis
CursorManager instead of directly to the graphics backend svn-id: r42060
2009-07-03SCI: Fixed warningMax Horn
svn-id: r42055