aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra.cpp
AgeCommit message (Collapse)Author
2007-01-25Adds CD audio support.Johannes Schickel
svn-id: r25192
2006-11-13Move addSpecialDebugLevel calls to engine constructor, as stated in ourEugene Sandulenko
HOWTO Engines. svn-id: r24704
2006-11-09- switches to Common::AdvancedDetectorJohannes Schickel
- non md5 based detector removed (for now) svn-id: r24665
2006-09-17- removes the kyra specific language flag system, and uses the language enum ↵Johannes Schickel
defined in Common for that now - also reworks the game flag system in general svn-id: r23920
2006-09-16Reduce code duplicationMax Horn
svn-id: r23888
2006-09-16Replaces all malloc/realloc usages with new.Johannes Schickel
svn-id: r23886
2006-09-15- adds dirty rect handling to the kyra engine (needs some more tests before ↵Johannes Schickel
I commit it to branch though) - initializes an uninitiliazied variable which caused crashes from time to time svn-id: r23878
2006-08-26Adds some framework for the Kyra2 intro, expands it a little bit and adds ↵Oystein Eftevaag
some static resources (strings, etc). Also adding a modified version of eriktorbjorn's '[1531929] KYRA: Kyra 2 & 3 main menu unification', with added mouse pointer and sundry. svn-id: r23766
2006-08-26Stop doing a screen rewrite on each mouse movement event, just schedule a ↵Oystein Eftevaag
redraw for later instead svn-id: r23764
2006-08-01Kyra 2 has two types of XMIDI files: XMI and C55. It seems C55 are for theTorbjörn Andersson
General MIDI instrument set, so use them unless we're in MT-32 mode. This makes the music sound a bit closer (at least to me) to what DOSbox plays. svn-id: r23653
2006-08-01Until the native Kyra 2 Adlib music is supported, enable the automagic MIDI-to-Torbjörn Andersson
Adlib converter. svn-id: r23651
2006-07-29Added _quitFlag test to Kyra 2 animation and to waitForEvent().Torbjörn Andersson
svn-id: r23617
2006-07-28Moves the kyra2 code to kyra2.cpp and kyra2.h, renames WSAMovieV3 to ↵Oystein Eftevaag
WSAMovie2 (kyra2 uses the same format), renames a define in kyra3.h for consistency, and adds a case for CMDS in the VQA player to avoid the constant warning (the tag is always present and empty). Credit/blame for the last one goes to Clemmy :). Starting kyra2 will now show the title animation. svn-id: r23614
2006-07-27Oops it should never be renamed to c1_* but to o1_* changing this now.Johannes Schickel
svn-id: r23613
2006-07-27- renaming all opcodes from cmd_* to c1_*Johannes Schickel
- changing ScriptHelper functions so it will be useable for kyra2 and kyra3 too - unbreaking savegames (increasing the VERSION number since the game flags table got resized to be useable for kyra3) svn-id: r23612
2006-07-25Add support for looping the kyra3 main menu.Johannes Schickel
svn-id: r23593
2006-07-23Initialise the screen before creating the music driver. The MT-32 driver wantsTorbjörn Andersson
to draw to the screen. svn-id: r23574
2006-07-16- don't error on CHAPTER1.VRM miss anymoreJohannes Schickel
- nicer error messages when no font files are found - implements nicer way to load fonts svn-id: r23531
2006-07-08Changes init error handling of kyra engine (engine fails at ↵Johannes Schickel
Engine_KYRA_create now instead of KyraEngine::init, also adds check for invalid game path like the scumm engine does). svn-id: r23426
2006-07-08Adds a message dialog if kyra.dat is missing which tells the user to ↵Johannes Schickel
download the kyra.dat file. svn-id: r23421
2006-06-24These FIXME comments can go, I think :)Max Horn
svn-id: r23277
2006-06-24Fixing a leak in the Kyra engine (the savefile manager allocated by class ↵Max Horn
Engine was never freed) svn-id: r23276
2006-06-05Fixed PalmOS ARM crashesChris Apers
svn-id: r22942
2006-06-03Fixes visible mouse cursor in the intro with classic theme.Johannes Schickel
svn-id: r22903
2006-06-03Fix for bug # 1497965 ("KYRA1: Skipping dialogue requires two clicks").Johannes Schickel
svn-id: r22848
2006-05-28cleanupJohannes Schickel
svn-id: r22717
2006-05-28- makes Screen::getPagePtr privateJohannes Schickel
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling) - moves KyraEngine::loadBitmap to Screen svn-id: r22716
2006-05-28Commits Chriliths patch for fixing Kyra on PalmOS.Johannes Schickel
svn-id: r22708
2006-05-28The Kyra settings are now stored in the config file instead of the savegames.Torbjörn Andersson
The settings in older savegames are ignored. svn-id: r22705
2006-05-26Fixes input handling while moving.Johannes Schickel
svn-id: r22661
2006-05-25- Adds some _quitFlag checksJohannes Schickel
- deletes Screen::drawPixel svn-id: r22622
2006-05-21- reworks quit handling (no _system->quit() anymore)Johannes Schickel
- fixes some deinitalization problems svn-id: r22558
2006-05-19Using assert(_something->init()) is a bad idea. Assertions can be disabled.Torbjörn Andersson
svn-id: r22533
2006-05-19Added some FIXMEs to the kyra engineMax Horn
svn-id: r22531
2006-05-16- implements kyrandia 3 wsa loaderJohannes Schickel
- fixes initalisation problems - adds setX, setY, setDrawPage to Kyra::Movie instead of directly accessing _x, _y and _drawPage svn-id: r22490
2006-05-08Added delay() to delayWithTicks() as well. This function is quite similar toTorbjörn Andersson
some of the custom delay loops in script_v1.cpp. Could it be used there? svn-id: r22394
2006-05-08Replaced a bunch of delay loops with a new delayUntil() function. Now all ofTorbjörn Andersson
them will at least sleep if the remaining delay is at least 10 ms. (Personally, I don't like the idea of busy-waiting even 9 ms, but now that it's in its own function, it becomes much easier if we want to change that behaviour. There are still plenty of custom delay loops left, though.) svn-id: r22393
2006-05-08Cleanup: Use ScummVM indentation style for switch() cases. In some cases, ITorbjörn Andersson
have added or removed "break"s, but not in any way which should change the program's behaviour. I.e. I've added "break" to the final case, and after calling quitGame(), and I've removed "break" after "return". svn-id: r22383
2006-05-03- moves detection code to plugin.cpp.Johannes Schickel
- splits game table for kyra1 and kyra2. svn-id: r22309
2006-05-03- modifies loadBitmap not to crash if a image isn't foundJohannes Schickel
- starts to clean up the engine initalisation code svn-id: r22308
2006-05-01Just add kyra2 to kyra_list if ENABLE_KYRA2 is defined.Johannes Schickel
svn-id: r22256
2006-05-01Adds archive file list, MD5 for my CD version, and a few function stubs for ↵Oystein Eftevaag
Hand of Fate, to use as a basis for further work svn-id: r22252
2006-04-29* Changed the createEngine() factory function of our plugins to return an ↵Max Horn
error code (the engine is now passed indirectly via a double pointer) * Removed Engine_Empty (obsolete now that engines can return actual error codes) svn-id: r22199
2006-04-27TypoOystein Eftevaag
svn-id: r22190
2006-04-27Move the detector code out of the constructor and into init() to do error ↵Oystein Eftevaag
handling (specifically the GUI error message if no game is found in the specified directory), and cleans up the constructor/destructor a bit to allow a clean exit. svn-id: r22189
2006-04-25- Check if path specified for a game in scummvm.ini really exists and complainEugene Sandulenko
if it does not - Give more understandable feedback to user when SCUMM module can't find a game - Put TODO to kyra engine as their current detection scheme does not let easily tell if game data really present in specified directory svn-id: r22163
2006-04-25Fixes some coordinate initialization in the menus, and makes sure the ↵Oystein Eftevaag
initial savegame is created when kyrandia is started for the first time svn-id: r22153
2006-04-17Implements the end credits, and disables fast forwarding in the intro.Oystein Eftevaag
svn-id: r21980
2006-04-16Removed the directory parameter from md5_fileMax Horn
svn-id: r21937
2006-04-15- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a ↵Max Horn
new getActiveDomain method that returns a pointer to the actual active *domain* - Added Engine::_targetName whose value is computed from the name of the active domain - Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain - This in turn allowed for removing usage of GameDetector in many places svn-id: r21916