aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/state.cpp
AgeCommit message (Collapse)Author
2009-12-25- Introduced a new version in the sound version detection routine, as SCI0 ↵Filippos Karapetis
early games had different sound than SCI0 late ones - Changed sound-related debug output from printf's into debugC calls svn-id: r46560
2009-12-09SCI: Paranoia tweak for EngineState::autoDetectFeatureMax Horn
svn-id: r46306
2009-11-22Added a sanity check to the setCursor detectionFilippos Karapetis
svn-id: r46087
2009-11-22Check which DoSound method is actually invoked from Sound::play, to remove a ↵Filippos Karapetis
hack for Jones CD. Added code to handle games which don't actually call SetCursor inside Game::setCursor (like KQ5CD) svn-id: r46086
2009-11-21Removed duplicate code and simplified some feature detectionFilippos Karapetis
svn-id: r46038
2009-11-20Fixed sound detection for Jones CDFilippos Karapetis
svn-id: r46030
2009-11-20Simplified the doSound detection a bitFilippos Karapetis
svn-id: r46028
2009-11-20- Removed the non-static selectors "overlay" and "setCursor" from the list ↵Filippos Karapetis
of static selectors and introduced a new method for discovering the relevant features when selectors are missing - currently used for determining the graphics functions and setCursor types - Simplified setCursor detection a bit svn-id: r46012
2009-11-20Check the overridden game object when performing setCursor detection, which ↵Filippos Karapetis
properly fixes KQ5CD (thanks waltervn) svn-id: r46009
2009-11-20Added a game-specific workaround for setCursor detection in KQ5CD: the code ↵Filippos Karapetis
for the setCursor selector has not been rewritten yet to use cursor views (it's the same as lsl3 and sq3, for example), but the game does use cursor views svn-id: r46008
2009-11-20Changed the lofs detection to iterate through all the methods of the Game ↵Filippos Karapetis
object again, instead of a specific selector - fixes Jones svn-id: r46006
2009-11-20Some corrections for the lofs autodetection - SQ4 floppy works againFilippos Karapetis
svn-id: r46002
2009-11-20Shifted some code aroundFilippos Karapetis
svn-id: r46001
2009-11-20- Rewrote the lofs parameter type auto-detection codeFilippos Karapetis
- Renamed dissectSelector -> autodetectFeature svn-id: r46000
2009-11-19- Simplified the different feature detection types, removed some duplicate ↵Filippos Karapetis
code and merged the feature detection code which relies on selectors - Replaced the function checksum calculations to make it more apparent what the feature detections do - Removed the now obsolete (and unused) firstRetOffset function svn-id: r45995
2009-11-12Started objectifying kDoSound()Filippos Karapetis
svn-id: r45862
2009-11-12The menu bar code is no longer used in the new graphics code, and the menu ↵Filippos Karapetis
state is no longer stored in saved games svn-id: r45854
2009-11-04Removed unused variables and placed some more old code inside INCLUDE_OLDGFX ↵Filippos Karapetis
defines svn-id: r45668
2009-11-04- Changed the segment manager to be a static part of the engine, and stopped ↵Filippos Karapetis
deleting and recreating it when restoring games - Merged game_exit(), script_free_vm_memory() and script_free_engine() - Cleanup svn-id: r45666
2009-11-04Removed the reference to SciGuiCursor from EngineStateFilippos Karapetis
svn-id: r45660
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-11-04Moved the audio CD handling code inside the AudioPlayer class. Some cleanupFilippos Karapetis
svn-id: r45656
2009-11-04Moved most of the code for playing sound effects and speech into a separate ↵Filippos Karapetis
class svn-id: r45653
2009-10-30- Removed status_bar_foreground and status_bar_background variables from the ↵Filippos Karapetis
engine state - Implemented clearMenuBar() in the new graphics code - Removed the "status_bar" command, which was used to set custom colors for the status bar svn-id: r45538
2009-10-28Wrapped some more oldgui-specific code around INCLUDE_OLDGFX safeguardsFilippos Karapetis
svn-id: r45492
2009-10-28Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard ↵Filippos Karapetis
(defined in sci.h) svn-id: r45459
2009-10-25Add support for CD Audio in Jones in the Fast Lane CD and KQ6 CD.Matthew Hoops
svn-id: r45367
2009-10-18SCI: Rename game_obj to _gameObjMax Horn
svn-id: r45235
2009-10-18SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicitMax Horn
svn-id: r45234
2009-10-16SCI: kAnimate now delays the first few calls less, otherwise sq3 will remove ↵Martin Kiewitz
details graphicwise. Walter please check, if this creates a regression with lsl3. svn-id: r45173
2009-10-14SCI: removed speed throttler (cause of kAnimate change)Martin Kiewitz
svn-id: r45094
2009-10-13Fixed a bug in the graphics function detection code, and corrected the ↵Filippos Karapetis
location of the static "overlay" selector in SCI0 games. Fixes the demo of lsl3 svn-id: r45010
2009-10-10Started rewriting the Object struct into a classFilippos Karapetis
svn-id: r44878
2009-10-10SCI: kMessage() rewriteWalter van Niftrik
svn-id: r44860
2009-10-09Removed the unused _flags variable from EngineStateFilippos Karapetis
svn-id: r44857
2009-10-09Moved actor movement detection in state.cpp, together with the other ↵Filippos Karapetis
detections and rewrote it to work in a similar fashion to the other detections svn-id: r44836
2009-10-09Oops...Filippos Karapetis
svn-id: r44830
2009-10-09Fixed an issue when examining callk calls in the new graphics functions ↵Filippos Karapetis
detection routine svn-id: r44829
2009-10-09Finished the automatic detection of the graphics functions used in SCI0 ↵Filippos Karapetis
games. Also, introduced a new helper function to detect the offset of a ret call inside a script, with possible uses in other script detection routines svn-id: r44828
2009-10-08SCI: Removed obsolete stringfrags codeMax Horn
svn-id: r44803
2009-10-08Started rewriting the check for the graphics functions type (still not ↵Filippos Karapetis
finished) svn-id: r44787
2009-10-08Removed the unused game_time variable, and fixed the incorrect calculation ↵Filippos Karapetis
of start_game_time when restoring a game svn-id: r44770
2009-10-07- Cleaned up the cursor codeFilippos Karapetis
- Renamed gui -> _gui in EngineState, for consistency - Added a reference to SciGuiCursor in EngineState, to be used by current code - Renamed setCursorHide -> hideCursor, setCursorShow -> showCursor - Moved the cursor zone limiting code inside SciGuiCursor. This code is currently not functioning, as we need to call refreshPosition() before each updateScreen() call to limit the cursor position. svn-id: r44760
2009-10-04SCI: Rename EngineState::segMan to _segManMax Horn
svn-id: r44629
2009-10-04SCI: Add SegManager::findObjectByName() method, make parse_reg_t() local to ↵Max Horn
console.cpp, and switch other code using it to use findObjectByName() instead. svn-id: r44628
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-09-30- Moved the list of synonyms and parser nodes inside the vocabulary classFilippos Karapetis
- Added a convenience member inside the EngineState struct to access the instance of the Vocabulary class svn-id: r44481
2009-09-25SCI: Remove EngineState::game_version, it was only used for saving anyway. ↵Max Horn
Also remove syncCStr() svn-id: r44358
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-17SCI: Add EngineState::_kernel member for convenienceMax Horn
svn-id: r44173